diff options
author | James Meyer <james.meyer@operamail.com> | 2008-11-08 19:55:52 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2008-11-08 19:55:52 (GMT) |
commit | 62a85af977dfdaa2c5650611e92d165ff96c39af (patch) | |
tree | 988016870332e5339954b085cc679e085f0f6057 /abs/extra-testing/zip/zip-3.0-build.patch | |
parent | 562074d2036106b5cd46505fe9823c939c1e7ff1 (diff) | |
download | linhes_pkgbuild-62a85af977dfdaa2c5650611e92d165ff96c39af.zip linhes_pkgbuild-62a85af977dfdaa2c5650611e92d165ff96c39af.tar.gz linhes_pkgbuild-62a85af977dfdaa2c5650611e92d165ff96c39af.tar.bz2 |
fixes for zip.
These were taken from gentoo.
Diffstat (limited to 'abs/extra-testing/zip/zip-3.0-build.patch')
-rw-r--r-- | abs/extra-testing/zip/zip-3.0-build.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/abs/extra-testing/zip/zip-3.0-build.patch b/abs/extra-testing/zip/zip-3.0-build.patch new file mode 100644 index 0000000..880b49e --- /dev/null +++ b/abs/extra-testing/zip/zip-3.0-build.patch @@ -0,0 +1,34 @@ +--- zip/unix/configure ++++ zip/unix/configure +@@ -18,7 +18,7 @@ + + CC=${1-cc} + CFLAGS=${2-"-I. -DUNIX"} +-LFLAGS1='' ++LFLAGS1="${LDFLAGS}" + LFLAGS2='' + LN="ln -s" + +@@ -118,7 +118,7 @@ _EOF_ + 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 @@ fi + 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" |