summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/zip/zip-3.0-pic.patch
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2008-11-08 19:55:52 (GMT)
committerJames Meyer <james.meyer@operamail.com>2008-11-08 19:55:52 (GMT)
commit62a85af977dfdaa2c5650611e92d165ff96c39af (patch)
tree988016870332e5339954b085cc679e085f0f6057 /abs/extra-testing/zip/zip-3.0-pic.patch
parent562074d2036106b5cd46505fe9823c939c1e7ff1 (diff)
downloadlinhes_pkgbuild-62a85af977dfdaa2c5650611e92d165ff96c39af.zip
linhes_pkgbuild-62a85af977dfdaa2c5650611e92d165ff96c39af.tar.gz
linhes_pkgbuild-62a85af977dfdaa2c5650611e92d165ff96c39af.tar.bz2
fixes for zip.
These were taken from gentoo.
Diffstat (limited to 'abs/extra-testing/zip/zip-3.0-pic.patch')
-rw-r--r--abs/extra-testing/zip/zip-3.0-pic.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/abs/extra-testing/zip/zip-3.0-pic.patch b/abs/extra-testing/zip/zip-3.0-pic.patch
new file mode 100644
index 0000000..d37e5ed
--- /dev/null
+++ b/abs/extra-testing/zip/zip-3.0-pic.patch
@@ -0,0 +1,12 @@
+--- unix/configure
++++ unix/configure
+@@ -29,6 +29,9 @@
+ echo Check if we can use asm code
+ OBJA=""
+ OCRCU8=""
++piclib="$(echo | $CPP -dM $CFLAGS - | grep -i __pic__)"
++echo "Checking if compiler wants to create pic code"
++[ "$piclib" == "" ] && \
+ if eval "$CPP match.S > _match.s 2>/dev/null"; then
+ if test ! -s _match.s || grep error < _match.s > /dev/null; then
+ :