[vlc-devel] commit: Use only the good cipher on other OSes than windows. ( Jean-Baptiste Kempf )
git version control
git at videolan.org
Sat Mar 8 09:38:47 CET 2008
vlc | branch: master | Jean-Baptiste Kempf <jb at altair.videolan.org> | Sat Mar 8 09:37:46 2008 +0100| [280d3b3cb3b1f3a1953cd6b21875130741f34e58]
Use only the good cipher on other OSes than windows.
Windows libgcrypt.a went from over 470KB to 317KB...
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=280d3b3cb3b1f3a1953cd6b21875130741f34e58
---
extras/contrib/src/Makefile | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/extras/contrib/src/Makefile b/extras/contrib/src/Makefile
index 69a2300..0bca22c 100644
--- a/extras/contrib/src/Makefile
+++ b/extras/contrib/src/Makefile
@@ -1804,14 +1804,16 @@ libgcrypt: libgcrypt-$(GCRYPT_VERSION).tar.bz2
$(EXTRACT_BZ2)
patch -p0 < Patches/gcrypt.patch
+CIPHDIG= --enable-ciphers=aes,des,rfc2268,arcfour --enable-digests=sha1,md5,rmd160 --enable-publickey-digests=dsa
+
.gcrypt: libgcrypt .gpg-error
ifdef HAVE_WIN32
- (cd $<; ./autogen.sh && $(HOSTCC) ./configure $(HOSTCONF) --target=i586-mingw32msvc --prefix=$(PREFIX) CFLAGS="$(CFLAGS)" --enable-ciphers=aes,des,rfc2268,arcfour --enable-digests=sha1,md5,rmd160 --enable-publickey-digests=dsa && sed -i 46s at sys/times.h at sys/time.h@ cipher/random.c && make && make install)
+ (cd $<; ./autogen.sh && $(HOSTCC) ./configure $(HOSTCONF) --target=i586-mingw32msvc --prefix=$(PREFIX) CFLAGS="$(CFLAGS)" $(CIPHDIG) && sed -i 46s at sys/times.h at sys/time.h@ cipher/random.c && make && make install)
else
ifdef HAVE_DARWIN_OS_ON_INTEL
- (cd $<; $(HOSTCC) ./configure --host=$(HOST) --build=$(BUILD) --prefix=$(PREFIX) --disable-asm CFLAGS="$(CFLAGS)" && make && make install)
+ (cd $<; $(HOSTCC) ./configure --host=$(HOST) --build=$(BUILD) --prefix=$(PREFIX) --disable-asm CFLAGS="$(CFLAGS)" $(CIPHDIG) && make && make install)
endif
- (cd $<; $(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) CFLAGS="$(CFLAGS)" && make && make install)
+ (cd $<; $(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) CFLAGS="$(CFLAGS)" $(CIPHDIG) && make && make install)
endif
$(INSTALL_NAME)
touch $@
More information about the vlc-devel
mailing list