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 1 of 1] scripts/build/internals.sh: compile wrapper with portable options


# HG changeset patch
# User Titus von Boxberg <titus@v9g.de>
# Date 1274558478 -7200
# Node ID 349535b3112f364d9c519dd2fb5866285c4d74db
# Parent  fb1ec8caa359284e701e2e20306fad1fcf213bed
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 fb1ec8caa359 -r 349535b3112f scripts/build/internals.sh
--- a/scripts/build/internals.sh	Sat May 22 14:11:27 2010 +0200
+++ b/scripts/build/internals.sh	Sat May 22 22:01:18 2010 +0200
@@ -58,15 +58,15 @@
                                    ".${CT_TARGET}-wrapper"
                 ;;
             exec)
-                _t="-s"
-                if [ "${CT_DEBUG_CT}" = "y" ]; then
-                  _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                                        \
                                    "${CT_LIB_DIR}/scripts/wrapper.c"          \
                                    -o ".${CT_TARGET}-wrapper"
+                if [ "${CT_DEBUG_CT}" != "y" ]; then
+                    # If not debugging crosstool-NG, strip the wrapper
+                    CT_DoExecLog DEBUG "${CT_HOST}-strip" ".${CT_TARGET}-wrapper"
+                fi
                 ;;
         esac
 

--
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]