summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Wright <gienah@gentoo.org>2017-01-03 10:00:36 +1100
committerMark Wright <gienah@gentoo.org>2017-01-03 10:02:02 +1100
commit1772772b7973e844b580481f4912f949b75890f4 (patch)
tree929e94010bd1072f2f2ecc9f18a5e13f20291d68 /sci-mathematics/sha1-polyml/files/sha1-polyml-5.6_p1-build.patch
parentRevert "dev-util/nvidia-cuda-toolkit: Drop old" (diff)
downloadgentoo-1772772b7973e844b580481f4912f949b75890f4.tar.gz
gentoo-1772772b7973e844b580481f4912f949b75890f4.tar.bz2
gentoo-1772772b7973e844b580481f4912f949b75890f4.zip
sci-mathematics/sha1-polyml: Bump to 5.6-1. Fix
get_libdir called in global scope, thanks to mgorny for reporting. Gentoo-bug: 593380 Package-Manager: portage-2.3.3
Diffstat (limited to 'sci-mathematics/sha1-polyml/files/sha1-polyml-5.6_p1-build.patch')
-rw-r--r--sci-mathematics/sha1-polyml/files/sha1-polyml-5.6_p1-build.patch60
1 files changed, 60 insertions, 0 deletions
diff --git a/sci-mathematics/sha1-polyml/files/sha1-polyml-5.6_p1-build.patch b/sci-mathematics/sha1-polyml/files/sha1-polyml-5.6_p1-build.patch
new file mode 100644
index 000000000000..86645b961134
--- /dev/null
+++ b/sci-mathematics/sha1-polyml/files/sha1-polyml-5.6_p1-build.patch
@@ -0,0 +1,60 @@
+--- polyml-5.6-1-orig/sha1/build 2015-09-09 03:05:54.000000000 +1000
++++ polyml-5.6-1/sha1/build 2016-12-28 19:10:36.148579115 +1100
+@@ -32,34 +32,34 @@
+
+ case "$target" in
+ x86-linux)
+- CFLAGS="-fPIC -I. -m32"
+- LDFLAGS="-fPIC -m32 -shared"
++ CFLAGS="-O2 -march=native -ggdb -fvar-tracking-assignments -fvar-tracking -pipe -fPIC -I. -m32"
++ LDFLAGS="-Wl,-O1 -Wl,--as-needed -fPIC -m32 -shared"
+ library="$target/libsha1.so"
+ test_sha1="test_sha1"
+ ;;
+ x86_64-linux)
+- CFLAGS="-fPIC -I. -m64"
+- LDFLAGS="-fPIC -m64 -shared"
++ CFLAGS="-O2 -march=native -ggdb -fvar-tracking-assignments -fvar-tracking -pipe -fPIC -I. -m64"
++ LDFLAGS="-Wl,-O1 -Wl,--as-needed -fPIC -m64 -shared"
+ library="$target/libsha1.so"
+ test_sha1="test_sha1"
+ ;;
+ x86-darwin)
+ LD=libtool
+- CFLAGS="-fPIC -I. -m32"
+- LDFLAGS="-dynamic -lc"
++ CFLAGS="-O2 -march=native -ggdb -fvar-tracking-assignments -fvar-tracking -pipe -fPIC -I. -m32"
++ LDFLAGS="-Wl,-O1 -Wl,--as-needed -dynamic -lc"
+ library="$target/libsha1.so"
+ test_sha1="test_sha1"
+ ;;
+ x86_64-darwin)
+ LD=libtool
+- CFLAGS="-fPIC -I. -m64"
+- LDFLAGS="-dynamic -lc"
++ CFLAGS="-O2 -march=native -ggdb -fvar-tracking-assignments -fvar-tracking -pipe -fPIC -I. -m64"
++ LDFLAGS="-Wl,-O1 -Wl,--as-needed -dynamic -lc"
+ library="$target/libsha1.so"
+ test_sha1="test_sha1"
+ ;;
+ x86-cygwin)
+- CFLAGS="-I. -m32"
+- LDFLAGS="-shared"
++ CFLAGS="-O2 -march=native -ggdb -fvar-tracking-assignments -fvar-tracking -pipe -I. -m32"
++ LDFLAGS="-Wl,-O1 -Wl,--as-needed -shared"
+ library="$target/sha1.dll"
+ test_sha1="test_sha1.exe"
+ ;;
+@@ -105,10 +105,6 @@
+ $CC $CFLAGS -o $test_sha1 test_sha1.c -ldl
+ [ "$?" -ne 0 ] && { exit 1; }
+
+-echo "Running tests ..."
+-./$test_sha1 $library
+-[ "$?" -ne 0 ] && { exit 1; }
+-
+-rm test_sha1 sha1.o
++exit 0
+
+ fi
+\ No newline at end of file