summaryrefslogtreecommitdiff
path: root/system/zip/10-zip-3.0-build.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-22 00:41:53 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-22 00:41:53 -0500
commite5948b872087d4bd939ee52921146417967f3fd9 (patch)
tree5b991deef2a930da925d1932d4cef7cfcb2a7b1b /system/zip/10-zip-3.0-build.patch
parent3a90a9469a33579c60320149a882aa8157814bfe (diff)
downloadpackages-e5948b872087d4bd939ee52921146417967f3fd9.tar.gz
packages-e5948b872087d4bd939ee52921146417967f3fd9.tar.bz2
packages-e5948b872087d4bd939ee52921146417967f3fd9.tar.xz
packages-e5948b872087d4bd939ee52921146417967f3fd9.zip
system/zip: pull in for gcc
Diffstat (limited to 'system/zip/10-zip-3.0-build.patch')
-rw-r--r--system/zip/10-zip-3.0-build.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/system/zip/10-zip-3.0-build.patch b/system/zip/10-zip-3.0-build.patch
new file mode 100644
index 000000000..1deab6a4c
--- /dev/null
+++ b/system/zip/10-zip-3.0-build.patch
@@ -0,0 +1,36 @@
+respect build environment settings
+
+--- a/unix/configure Wed Jan 28 22:22:13 2009
++++ b/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"