aboutsummaryrefslogtreecommitdiffstats
path: root/extra/zip/10-zip-3.0-build.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/10-zip-3.0-build.patch
parent3cc9204922cd885c9dc712f515af115d4cdc52b9 (diff)
downloadaports-beb09de66cb5d0baaae70622442ad0aed34c9c24.tar.bz2
aports-beb09de66cb5d0baaae70622442ad0aed34c9c24.tar.xz
extra/zip: new aport
Diffstat (limited to 'extra/zip/10-zip-3.0-build.patch')
-rw-r--r--extra/zip/10-zip-3.0-build.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/extra/zip/10-zip-3.0-build.patch b/extra/zip/10-zip-3.0-build.patch
new file mode 100644
index 0000000000..5ddad23b95
--- /dev/null
+++ b/extra/zip/10-zip-3.0-build.patch
@@ -0,0 +1,36 @@
+respect build environment settings
+
+--- unix/configure Wed Jan 28 22:22:13 2009
++++ unix/configure Wed Jan 28 22:23:54 2009
+@@ -18,7 +18,7 @@
+
+ CC=${1-cc}
+ CFLAGS=${2-"-I. -DUNIX"}
+-LFLAGS1=''
++LFLAGS1="${LDFLAGS}"
+ LFLAGS2=''
+ LN="ln -s"
+
+@@ -118,7 +118,7 @@
+ fi
+
+ # optimization flags
+-if test -n "${CFLAGS_OPT}"; then
++if false; then
+ CFLAGS="${CFLAGS} ${CFLAGS_OPT}"
+ CFLAGS_BZ="${CFLAGS_BZ} ${CFLAGS_OPT}"
+ fi
+@@ -220,13 +220,6 @@
+ 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"
+
+ echo "#include <stdio.h>" > conftest.c
+ $CPP conftest.c >/dev/null 2>/dev/null || CPP="${CC} -E"