X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilccrypt%2FMakefile.am;h=3dd281ca453b60687de3d847b636417272633bcf;hb=413da0f8686910f5e627393157566ae729ca99c4;hp=c3f058f0af2a5d4583b08ceb95074e02fe4c7f08;hpb=4ca55862d0a21c113d879aa7838c1bdef2abfa84;p=silc.git diff --git a/lib/silccrypt/Makefile.am b/lib/silccrypt/Makefile.am index c3f058f0..3dd281ca 100644 --- a/lib/silccrypt/Makefile.am +++ b/lib/silccrypt/Makefile.am @@ -38,6 +38,15 @@ libsilccrypt_la_SOURCES = \ silcpkcs.c \ pkcs1.c +if SILC_LIBTOOLFIX +# Tell libtool to compile silccrypt as shared since silcsim will need it. +LTFLAGS = --libtool-enable-shared +else +LTFLAGS = +endif + +CFLAGS = $(LTFLAGS) + if SILC_DIST_TOOLKIT include_HEADERS = \ aes.h \ @@ -61,6 +70,13 @@ include_HEADERS = \ twofish.h endif -EXTRA_DIST = *.h +EXTRA_DIST = *.h tests include $(top_srcdir)/Makefile.defines.in + +# Workaround a bug in GCC 2.x which causes memory exhaustion +# when compiling sha1 with optimizations on UltraSPARC. +# +@FIX_SHA1@sha1.lo: +@FIX_SHA1@ $(LTCOMPILE) -O0 -c -o $@ `test -f 'sha1.c' || echo '$(srcdir)/'`sha1.c +@FIX_SHA1@