1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/databases/typhoon/files/patch-aa
Kevin Lo afec5bbcdb Support CC/CFLAGS properly.
PR: 22987
Submitted by: MAINTAINER
2000-11-21 15:46:38 +00:00

28 lines
624 B
Plaintext

--- configure.orig Mon May 22 01:47:06 1995
+++ configure Sat Nov 18 02:56:37 2000
@@ -1,7 +1,7 @@
#
# configure script
#
-CC=cc
+alias type=which
compile='$CC -o conftest conftest.c >/dev/null 2>&1'
compiled_ok='test -s conftest && (./conftest) >/dev/null 2>/dev/null;'
@@ -151,11 +151,11 @@
#
echo Checking for cc
if test -z "$CC" && type cc >/dev/null 2>/dev/null ; then
- CC=cc
- CFLAGS="-g $(DEFINES)"
+ CC="$CC"
+ CFLAGS="$CFLAGS $(DEFINES)"
else
- CC=gcc
- CFLAGS="-g -W -Wunused -Wpointer-arith -Wswitch \$(DEFINES)"
+ CC="$CC"
+ CFLAGS="$CFLAGS -W -Wunused -Wpointer-arith -Wswitch \$(DEFINES)"
fi
#