summaryrefslogtreecommitdiff
path: root/config.lib
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2007-04-21 13:19:43 +0000
committertruelight <truelight@openttd.org>2007-04-21 13:19:43 +0000
commit2f188272af4b62964fc938ed4f46d303cc7520a9 (patch)
treecccb543fe47f64f0f43e0d0c5a5061f8d708e070 /config.lib
parentac0c371d5acb028cf92264d75fdeb47d221fa84c (diff)
downloadopenttd-2f188272af4b62964fc938ed4f46d303cc7520a9.tar.xz
(svn r9710) -Add: added support for GCC 2.95. This makes MorphOS target alive again. With a big thanks to tokai and Rubidium!!
Diffstat (limited to 'config.lib')
-rw-r--r--config.lib8
1 files changed, 8 insertions, 0 deletions
diff --git a/config.lib b/config.lib
index 3505229e3..8136ec0ce 100644
--- a/config.lib
+++ b/config.lib
@@ -673,6 +673,13 @@ make_cflags_and_ldflags() {
CC_CFLAGS="$CC_CFLAGS -Wstrict-prototypes"
fi
+ gcc295=""
+ if [ "$cc_version" = 29 ]; then
+ # Make sure we mark GCC 2.95 flag for Makefile.src.in, as we
+ # need a lovely hack there to make it compile correctly.
+ gcc295="1"
+ fi
+
if [ $cc_version -ge 30 ]; then
CFLAGS="$CFLAGS -W -Wno-unused-parameter"
fi
@@ -1853,6 +1860,7 @@ make_sed() {
s#!!CONFIGURE_FILES!!#$CONFIGURE_FILES#g;
s#!!REVISION!!#$revision#g;
s#!!AWK!!#$awk#g;
+ s#!!GCC295!!#$gcc295#g;
s#!!ENABLE_INSTALL!!#$enable_install#g;
"
}