summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-11-18 23:05:32 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-11-18 23:05:32 +0000
commit91c14cde8b5c1dd5bd503288cf10bc98084a1b95 (patch)
treea9b2580a804ecea84e3a25140603a8ca8bd7080d /configure
parent16a454f146570d5f49ce0a73603ccb921ce3e5e9 (diff)
Add CXXFLAGS appending thing from darix
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5769 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure b/configure
index 42fe0f7c2..8d0a01fb4 100755
--- a/configure
+++ b/configure
@@ -1072,6 +1072,7 @@ sub getosflags {
if ($config{OSNAME} =~ /BSD$/) {
$config{LDLIBS} = "-lstdc++";
$config{FLAGS} = "-fPIC -Wall -Woverloaded-virtual $config{OPTIMISATI}";
+ $config{FLAGS} .= " " . $ENV{CXXFLAGS} if exists($ENV{CXXFLAGS});
$config{MAKEPROG} = "gmake";
if ($config{OSNAME} eq "OpenBSD") {
chomp($foo = `eg++ -dumpversion | cut -c 1`);
@@ -1088,6 +1089,7 @@ sub getosflags {
} else {
$config{LDLIBS} = "-ldl -lstdc++";
$config{FLAGS} = "-fPIC -Wall -Woverloaded-virtual $config{OPTIMISATI}";
+ $config{FLAGS} .= " " . $ENV{CXXFLAGS} if exists($ENV{CXXFLAGS});
$config{MAKEPROG} = "make";
if ($config{OSNAME} =~ /CYGWIN/) {
$config{FLAGS} = "-Wall -Woverloaded-virtual $config{OPTIMISATI}";