[vlc-devel] [PATCH] contrib: libssp: build libssp on Win32 so we can patch it to use bcrypt
Rémi Denis-Courmont
remi at remlab.net
Tue Apr 7 16:06:44 CEST 2020
Le tiistaina 7. huhtikuuta 2020, 16.11.37 EEST Steve Lhomme a écrit :
> diff --git a/contrib/src/libssp/rules.mak b/contrib/src/libssp/rules.mak
> new file mode 100644
> index 00000000000..42fed0c714b
> --- /dev/null
> +++ b/contrib/src/libssp/rules.mak
> @@ -0,0 +1,28 @@
> +# libssp
> +LIBSSP_VERSION := 9_2_0
> +LIBSSP_SVNURL :=
> svn://gcc.gnu.org/svn/gcc/tags/gcc_$(LIBSSP_VERSION)_release/libssp +
> +ifdef HAVE_WIN32
> +PKGS += libssp
> +endif
This really just a more general and abstract respin of Martin's question, but
I think overriding a toolchain library is a very bad idea.
Conversely, *if* it's really necessary, then it should be disabled by default.
> +
> +$(TARBALLS)/libssp-$(LIBSSP_VERSION).tar.gz:
> + rm -rf libssp-$(LIBSSP_VERSION) libssp
> + $(SVN) checkout -q $(LIBSSP_SVNURL)
> + rm -rf libssp/.svn
> + mv libssp libssp-$(LIBSSP_VERSION)
> + tar czf $@ libssp-$(LIBSSP_VERSION)
> +
> +.sum-libssp: libssp-$(LIBSSP_VERSION).tar.gz
> +
> +libssp: libssp-$(LIBSSP_VERSION).tar.gz .sum-libssp
> + $(UNPACK)
> + $(APPLY)
> $(SRC)/libssp/0001-favor-bcrypt-over-wincrypt-for-the-random-generator-.pat
> ch + $(APPLY)
> $(SRC)/libssp/0002-allow-building-outside-of-the-gcc-tree.patch + $(MOVE)
> +
> +.libssp: libssp
> + $(RECONF)
> + cd $< && $(HOSTVARS) ./configure $(HOSTCONF)
> + cd $< && $(MAKE) install
> + touch $@
--
Rémi Denis-Courmont
Hagalund ny stad, Nylands republik
More information about the vlc-devel
mailing list