summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-09-23 16:11:46 +0000
committerMike Frysinger <vapier@gentoo.org>2006-09-23 16:11:46 +0000
commit7f322749803c3f11ea28480247707d7ad368f526 (patch)
tree558b6bd2d82c998667dcba06770913fe705b4431 /dev-libs/libtommath/files
parentold (diff)
downloadgentoo-2-7f322749803c3f11ea28480247707d7ad368f526.tar.gz
gentoo-2-7f322749803c3f11ea28480247707d7ad368f526.tar.bz2
gentoo-2-7f322749803c3f11ea28480247707d7ad368f526.zip
Respect LDFLAGS #126868.
(Portage version: 2.1.2_pre1)
Diffstat (limited to 'dev-libs/libtommath/files')
-rw-r--r--dev-libs/libtommath/files/digest-libtommath-0.36-r12
-rw-r--r--dev-libs/libtommath/files/libtommath-0.36-LDFLAGS.patch27
2 files changed, 29 insertions, 0 deletions
diff --git a/dev-libs/libtommath/files/digest-libtommath-0.36-r1 b/dev-libs/libtommath/files/digest-libtommath-0.36-r1
index ca35fa04a92c..c27d523ad22b 100644
--- a/dev-libs/libtommath/files/digest-libtommath-0.36-r1
+++ b/dev-libs/libtommath/files/digest-libtommath-0.36-r1
@@ -1 +1,3 @@
MD5 cd4f9305e1b721b3c3eb7bcdc25abfc6 ltm-0.36.tar.bz2 1924150
+RMD160 f9fc66d076913b7e6b0226470b5cff3caa704c2d ltm-0.36.tar.bz2 1924150
+SHA256 16243c61694a52553a2d65c097456e024d8dcd9e3571c8f712ca163eaa769c6b ltm-0.36.tar.bz2 1924150
diff --git a/dev-libs/libtommath/files/libtommath-0.36-LDFLAGS.patch b/dev-libs/libtommath/files/libtommath-0.36-LDFLAGS.patch
new file mode 100644
index 000000000000..80e466704575
--- /dev/null
+++ b/dev-libs/libtommath/files/libtommath-0.36-LDFLAGS.patch
@@ -0,0 +1,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