This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 8 of 8] scripts/build/internals.sh: compile wrapper with portable options


# HG changeset patch
# User Titus von Boxberg <titus@v9g.de>
# Date 1274536233 -7200
# Node ID 8aae61cd45c6de2a478c2b18e3c99d5fb2c1c7f5
# Parent  0c64aa7189a9687158505850d6e188a66c04e5cd
scripts/build/internals.sh: compile wrapper with portable options.

static linking is not possible on MacOS, and unnessecary on other systems.
The old optimization and warning flags crash the gcc on MacOS
and (imho) are a bit overdone for this software.

diff -r 0c64aa7189a9 -r 8aae61cd45c6 scripts/build/internals.sh
--- a/scripts/build/internals.sh	Sat May 22 12:37:02 2010 +0200
+++ b/scripts/build/internals.sh	Sat May 22 15:50:33 2010 +0200
@@ -57,12 +57,13 @@
                 ;;
             exec)
                 _t="-s"
-                if [ "${CT_DEBUG_CT}" = "y" ]; then
+                if [ "${CT_DEBUG_CT}" = "y" -o "${CT_SYS_OS}" = "Darwin" ]; then
+                  # on MacOS, -s is unsupported / ignored
                   _t="" # If debugging crosstool-NG, don't strip the wrapper
                 fi
                 CT_DoExecLog DEBUG "${CT_HOST}-gcc"                           \
-                                   -Wall -Wextra -Wunreachable-code -Werror   \
-                                   -O3 -static ${_t}                          \
+                                   -Wall -Wextra -Werror                      \
+                                   -Os ${_t}                                  \
                                    "${CT_LIB_DIR}/scripts/wrapper.c"          \
                                    -o ".${CT_TARGET}-wrapper"
                 ;;

--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]