summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/zip/zip-3.0-pic.patch
diff options
context:
space:
mode:
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
+ :