[Substrate-commits] SF.net SVN: substrate: [288] trunk/platform.m4
Brought to you by:
landonf
|
From: <la...@us...> - 2006-09-01 00:37:23
|
Revision: 288
http://svn.sourceforge.net/substrate/?rev=288&view=rev
Author: landonf
Date: 2006-08-31 17:37:19 -0700 (Thu, 31 Aug 2006)
Log Message:
-----------
Use target, not host, variables in autoconf.
Bump the optimization cflags up to -O2.
Modified Paths:
--------------
trunk/platform.m4
Modified: trunk/platform.m4
===================================================================
--- trunk/platform.m4 2006-09-01 00:08:24 UTC (rev 287)
+++ trunk/platform.m4 2006-09-01 00:37:19 UTC (rev 288)
@@ -199,7 +199,7 @@
AC_DEFUN(OD_CPU_NATURAL_ALIGNMENT,[
AC_MSG_CHECKING([correct structure alignment])
- case $host_cpu in
+ case $target_cpu in
i?86)
# 4 bytes is the minimum correct alignment
#
@@ -291,7 +291,7 @@
AC_MSG_RESULT([$CPU_NATURAL_ALIGNMENT])
if test x"$CPU_NATURAL_ALIGNMENT" = x"unknown"; then
- AC_MSG_ERROR([natural data alignment for $host_cpu is unknown. Please see the OpenDarwin libFoundation documentation for information on porting libFoundation to a new architecture.])
+ AC_MSG_ERROR([natural data alignment for $target_cpu is unknown. Please see the OpenDarwin libFoundation documentation for information on porting libFoundation to a new architecture.])
fi
AC_DEFINE_UNQUOTED([CPU_NATURAL_ALIGNMENT], [$CPU_NATURAL_ALIGNMENT], [Define to the largest alignment boundry size required on the host platform.])
])
@@ -412,7 +412,7 @@
ECHO_VERSION='`echo ${LIB_VERSION}`'
TCL_LIB_VERSIONS_OK=ok
CFLAGS_DEBUG=-g
- CFLAGS_OPTIMIZE=-O
+ CFLAGS_OPTIMIZE=-O2
if test "$GCC" = "yes" ; then
CFLAGS_WARNING="-Wall -Wno-implicit-int"
else
@@ -430,7 +430,7 @@
LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
PLAT_OBJS=""
- case $host_os in
+ case $target_os in
aix5.*)
if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes" ; then
# AIX requires the _r compiler when gcc isn't being used
@@ -638,7 +638,7 @@
EXTRA_CFLAGS="-mabi=n32"
LDFLAGS="-mabi=n32"
else
- case $host_os in
+ case $target_os in
irix6.3)
# Use to build 6.2 compatible binaries on 6.3.
EXTRA_CFLAGS="-n32 -D_OLD_TERMIOS"
@@ -651,7 +651,7 @@
fi
;;
irix646.*)
- # XXX This host_os value probably won't match, but I don't have any Irix machines to test with.
+ # XXX This target_os value probably won't match, but I don't have any Irix machines to test with.
SHLIB_CFLAGS=""
SHLIB_LD="ld -n32 -shared -rdata_shared"
SHLIB_LD_LIBS='${LIBS}'
@@ -678,7 +678,7 @@
SHLIB_LD="${CC} -shared"
LDFLAGS="-rdynamic"
- case $host_cpu in
+ case $target_cpu in
alpha*)
EXTRA_CFLAGS="-mieee"
;;
@@ -691,7 +691,7 @@
SHLIB_LD="${CC} -shared"
LDFLAGS="-rdynamic"
- case $host_cpu in
+ case $target_cpu in
alpha*)
EXTRA_CFLAGS="-mieee"
;;
@@ -766,7 +766,7 @@
EXTRA_CFLAGS="-pthread"
LDFLAGS="$LDFLAGS -pthread"
fi
- case $host_os in
+ case $target_os in
freebsd3.*)
# FreeBSD-3 doesn't handle version numbers with dots.
UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}${DBGX}.a'
@@ -781,7 +781,6 @@
SHLIB_LD_EXTRAS="-compatibility_version \${DYLIB_COMPAT_VERSION} -current_version \${LIB_VERSION} -install_name \${DYLIB_INSTALL_DIR}/\${LIB_FILE}"
SHLIB_LD_LIBS='${LIBS}'
SHLIB_SUFFIX=".dylib"
- CFLAGS_OPTIMIZE="-Os"
LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH"
# for compatibility with autoconf vers 2.13 :
HACK=""
@@ -993,7 +992,7 @@
if test x"$SHLIB_SUFFIX" != "x" ; then
if test "$GCC" = "yes" ; then
- case $host_os in
+ case $target_os in
aix*)
;;
bsdi*)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|