summaryrefslogtreecommitdiff
blob: 80e4667045756ac95170bc8c3e582cbfe99503c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
http://bugs.gentoo.org/126868

--- libtommath-0.36/makefile.shared
+++ libtommath-0.36/makefile.shared
@@ -81,7 +81,7 @@
 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 @@
 
 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