Don't use cc to compile C++ files, respect CXX and CXXFLAGS

requested by and ok naddy@
This commit is contained in:
wilfried 2002-09-30 06:44:17 +00:00
parent ed32373f4e
commit 05f882c5eb
2 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-configure,v 1.3 2002/09/30 06:44:17 wilfried Exp $
--- configure.orig Sat Sep 28 10:39:23 2002
+++ configure Sat Sep 28 10:39:51 2002
@@ -4190,7 +4190,7 @@ echo "configure:4179: checking if libsup
;;
esac
- CXX="$CC"
+ : # CXX="$CC"
# Show all standard warnings + unused variables when compiling...
OPTIM="-Wall -Wunused $OPTIM"
@@ -4217,7 +4217,7 @@ echo "configure:4179: checking if libsup
if test "x$with_optim" != x; then
OPTIM="$with_optim $OPTIM"
else
- OPTIM="-O2 $OPTIM"
+ : # OPTIM="-O2 $OPTIM"
fi
fi

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-configure_in,v 1.4 2002/09/30 06:44:17 wilfried Exp $
--- configure.in.orig Mon Aug 12 21:42:54 2002
+++ configure.in Sat Sep 28 10:39:45 2002
@@ -612,7 +612,7 @@ if test -n "$GCC"; then
;;
esac
- CXX="$CC"
+ : # CXX="$CC"
# Show all standard warnings + unused variables when compiling...
OPTIM="-Wall -Wunused $OPTIM"
@@ -639,7 +639,7 @@ if test -n "$GCC"; then
if test "x$with_optim" != x; then
OPTIM="$with_optim $OPTIM"
else
- OPTIM="-O2 $OPTIM"
+ : # OPTIM="-O2 $OPTIM"
fi
fi