aboutsummaryrefslogtreecommitdiffstats
path: root/extra/zip/30-zip-3.0-pic.patch
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2009-01-28 22:44:48 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-01-29 09:17:50 +0000
commitbeb09de66cb5d0baaae70622442ad0aed34c9c24 (patch)
tree821108aced4c1d22cd58b500e28db585cc4998d7 /extra/zip/30-zip-3.0-pic.patch
parent3cc9204922cd885c9dc712f515af115d4cdc52b9 (diff)
downloadaports-beb09de66cb5d0baaae70622442ad0aed34c9c24.tar.bz2
aports-beb09de66cb5d0baaae70622442ad0aed34c9c24.tar.xz
extra/zip: new aport
Diffstat (limited to 'extra/zip/30-zip-3.0-pic.patch')
-rw-r--r--extra/zip/30-zip-3.0-pic.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/extra/zip/30-zip-3.0-pic.patch b/extra/zip/30-zip-3.0-pic.patch
new file mode 100644
index 0000000000..14a8821b04
--- /dev/null
+++ b/extra/zip/30-zip-3.0-pic.patch
@@ -0,0 +1,15 @@
+if our toolchain generates PIC by default, then do not use the hand written
+assembly files as none of it is PIC friendly.
+
+--- unix/configure Wed Jan 28 22:23:54 2009
++++ unix/configure Wed Jan 28 22:29:51 2009
+@@ -228,6 +228,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
+ :