Author: sebor
Date: Wed Aug 9 10:06:54 2006
New Revision: 430096
URL: http://svn.apache.org/viewvc?rev=430096&view=rev
Log:
2006-08-09 Martin Sebor <[EMAIL PROTECTED]>
STDCXX-269
* gcc.config (WIDE_CXXFLAGS, WIDE_LDFLAGS, WIDE_LDSOFLAGS): Defined
to -m64 on non-IA64 architectures only.
Modified:
incubator/stdcxx/trunk/etc/config/gcc.config
Modified: incubator/stdcxx/trunk/etc/config/gcc.config
URL:
http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/gcc.config?rev=430096&r1=430095&r2=430096&view=diff
==============================================================================
--- incubator/stdcxx/trunk/etc/config/gcc.config (original)
+++ incubator/stdcxx/trunk/etc/config/gcc.config Wed Aug 9 10:06:54 2006
@@ -194,8 +194,18 @@
SINGL_CPPFLAGS =
SINGL_LDFLAGS =
-# wide (64-bit flags)
-WIDE_CXXFLAGS = -m64
-WIDE_LDFLAGS = -m64
-WIDE_LDSOFLAGS = -m64
-WIDE_ARFLAGS =
+# (try to) determine the architecture via the (non-standard) -p option
+# the option is recognized on at least HP-UX, IRIX, and Linux (are there
+# any other systems running on IA64?)
+arch=$(shell uname -p 2>/dev/null)
+
+ifeq ($(arch),ia64)
+ # -mlp64 is the default setting on IA64
+ # TODO: add a way to select the narrow (32-bit) model
+else
+ # wide (64-bit flags)
+ WIDE_CXXFLAGS = -m64
+ WIDE_LDFLAGS = -m64
+ WIDE_LDSOFLAGS = -m64
+ WIDE_ARFLAGS =
+endif