summaryrefslogtreecommitdiff
path: root/archivers/zip/patches
diff options
context:
space:
mode:
authorrichard <richard@pkgsrc.org>2015-08-28 08:17:38 +0000
committerrichard <richard@pkgsrc.org>2015-08-28 08:17:38 +0000
commit0229321d9d0d973ad92ce0a0d4c98fcdccd53a68 (patch)
tree129fb1a67b39728cdd9075ba99c1ac7b74b33deb /archivers/zip/patches
parent211395412584c52adf981921872e626ec0f138df (diff)
downloadpkgsrc-0229321d9d0d973ad92ce0a0d4c98fcdccd53a68.tar.gz
patch to let SunOS, other than sunpro compilers, use assembler.
The problem is more the ilk of the cpp installed.. bump PKGREVISION
Diffstat (limited to 'archivers/zip/patches')
-rw-r--r--archivers/zip/patches/patch-ab21
1 files changed, 20 insertions, 1 deletions
diff --git a/archivers/zip/patches/patch-ab b/archivers/zip/patches/patch-ab
index b1162342c94..d470a5be436 100644
--- a/archivers/zip/patches/patch-ab
+++ b/archivers/zip/patches/patch-ab
@@ -1,4 +1,4 @@
-$NetBSD: patch-ab,v 1.6 2013/04/16 10:49:31 adam Exp $
+$NetBSD: patch-ab,v 1.7 2015/08/28 08:17:38 richard Exp $
Use CPPFLAGS during configuration.
Don't force compiler optimization flags.
@@ -26,6 +26,25 @@ Introduce DISABLE_ASM
# bzip2
+@@ -221,12 +217,12 @@ echo Check for the C preprocessor
+ # on SVR4, cc -E does not produce correct assembler files. Need /lib/cpp.
+ CPP="${CC} -E"
+ # solaris as(1) needs -P, maybe others as well ?
+-[ -f /usr/ccs/lib/cpp ] && CPP="/usr/ccs/lib/cpp -P"
+-[ -f /usr/lib/cpp ] && CPP=/usr/lib/cpp
+-[ -f /lib/cpp ] && CPP=/lib/cpp
+-[ -f /usr/bin/cpp ] && CPP=/usr/bin/cpp
+-[ -f /xenix ] && CPP="${CC} -E"
+-[ -f /lynx.os ] && CPP="${CC} -E"
++#[ -f /usr/ccs/lib/cpp ] && CPP="/usr/ccs/lib/cpp -P"
++#[ -f /usr/lib/cpp ] && CPP=/usr/lib/cpp
++#[ -f /lib/cpp ] && CPP=/lib/cpp
++#[ -f /usr/bin/cpp ] && CPP=/usr/bin/cpp
++#[ -f /xenix ] && CPP="${CC} -E"
++#[ -f /lynx.os ] && CPP="${CC} -E"
+
+ echo "#include <stdio.h>" > conftest.c
+ $CPP conftest.c >/dev/null 2>/dev/null || CPP="${CC} -E"
@@ -235,6 +231,7 @@ $CPP conftest.c >/dev/null 2>/dev/null |
echo Check if we can use asm code
OBJA=""