Index: libtommath-0.36/makefile.shared =================================================================== --- libtommath-0.36.orig/makefile.shared +++ libtommath-0.36/makefile.shared @@ -81,7 +81,7 @@ bn_mp_init_set_int.o bn_mp_invmod_slow.o bn_mp_to_signed_bin_n.o bn_mp_to_unsigned_bin_n.o $(LIBNAME): $(OBJECTS) - libtool --mode=link --tag=CC gcc *.lo -o $(LIBNAME) -rpath $(LIBPATH) -version-info $(VERSION) + libtool --mode=link --tag=CC gcc $(LDFLAGS) *.lo -o $(LIBNAME) -rpath $(LIBPATH) -version-info $(VERSION) libtool --mode=link --tag=CC gcc *.o -o $(LIBNAME_S) install: $(LIBNAME) $(HEADERS) @@ -92,10 +92,10 @@ install: $(LIBNAME) $(HEADERS) test: $(LIBNAME) demo/demo.o gcc $(CFLAGS) -c demo/demo.c -o demo/demo.o - libtool --mode=link gcc -o test demo/demo.o $(LIBNAME_S) + libtool --mode=link gcc $(LDFLAGS) -o test demo/demo.o $(LIBNAME) mtest: test - cd mtest ; gcc $(CFLAGS) mtest.c -o mtest + cd mtest ; gcc $(CFLAGS) $(LDFLAGS) mtest.c -o mtest timing: $(LIBNAME) - gcc $(CFLAGS) -DTIMER demo/timing.c $(LIBNAME_S) -o ltmtest + libtool --mode=link gcc $(CFLAGS) $(LDFLAGS) -DTIMER demo/timing.c $(LIBNAME) -o ltmtest