aboutsummaryrefslogtreecommitdiffstats
path: root/main/zip/10-zip-3.0-build.patch
blob: 5ddad23b95a1186d691129a31501274a7cc51c83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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"