summaryrefslogtreecommitdiff
path: root/infrastructure
diff options
context:
space:
mode:
authorJames O'Gorman <james@netinertia.co.uk>2011-05-02 11:25:49 +0000
committerJames O'Gorman <james@netinertia.co.uk>2011-05-02 11:25:49 +0000
commite10e0258106df1d93e60b046c9ef51770d8997fd (patch)
tree641619381adbb65bc43b8f52987171d5fa4ef804 /infrastructure
parent2b087f259eee2e18b40a649f6bf5dfc44751db31 (diff)
Finally unbreak build on Solaris!
* Add code to configure to detect whether we should compile with -m32 or -m64. GCC on Solaris defaults to 32-bit even of the OS is running in 64-bit mode. (Solaris only) * Change the CFLAGS, CXXFLAGS and LDFLAGS definitions to be append rather than set. This allows passing them at compile-time to make(1).
Diffstat (limited to 'infrastructure')
-rwxr-xr-xinfrastructure/makebuildenv.pl.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/infrastructure/makebuildenv.pl.in b/infrastructure/makebuildenv.pl.in
index db081dd4..8fe1baeb 100755
--- a/infrastructure/makebuildenv.pl.in
+++ b/infrastructure/makebuildenv.pl.in
@@ -568,16 +568,16 @@ WINDRES = @WINDRES@
DEFAULT_CXXFLAGS = @CPPFLAGS@ $default_cxxflags @CXXFLAGS_STRICT@ \\
$include_paths $extra_platform_defines \\
-DBOX_VERSION="\\"$product_version\\""
-LDFLAGS = @LDFLAGS@ @LDADD_RDYNAMIC@
+LDFLAGS += @LDFLAGS@ @LDADD_RDYNAMIC@
.ifdef RELEASE
-CXXFLAGS = -DBOX_RELEASE_BUILD $release_flags \$(DEFAULT_CXXFLAGS)
+CXXFLAGS += -DBOX_RELEASE_BUILD $release_flags \$(DEFAULT_CXXFLAGS)
OUTBASE = ../../release
OUTDIR = ../../release/$mod
DEPENDMAKEFLAGS = -D RELEASE
VARIENT = RELEASE
.else
-CXXFLAGS = -g \$(DEFAULT_CXXFLAGS)
+CXXFLAGS += -g \$(DEFAULT_CXXFLAGS)
OUTBASE = ../../debug
OUTDIR = ../../debug/$mod
DEPENDMAKEFLAGS =