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

See crosstool-NG 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] Allow -m32 to be passed via CT_EXTRA_CFLAGS_FOR_BUILD when building 32-bit crossgdb on 64-bit machine


Not sure if this is the right way to do it, but I pass -m32 via
CT_EXTRA_CFLAGS_FOR_BUILD when building 32-bit binaries on a 64-bit
host.

Without this, crosstool will build everything 32-bit EXCEPT for gdb!

Perhaps it should just go in CC_for_gdb and LD_for_gdb?

Especially if explicitly specifying "-g -O2" (the default in gdb
configure) is a bad idea?

diff -r 069f43a215cc scripts/build/debug/300-gdb.sh
--- a/scripts/build/debug/300-gdb.sh	Wed Jun 25 23:33:01 2014 +0200
+++ b/scripts/build/debug/300-gdb.sh	Wed Jul 16 14:51:58 2014 -0700
@@ -155,6 +155,8 @@
         CT_DoExecLog CFG                                \
         CC="${CC_for_gdb}"                              \
         LD="${LD_for_gdb}"                              \
+        CFLAGS="-g -O2 ${CT_EXTRA_CFLAGS_FOR_BUILD}"    \
+        CXXFLAGS="-g -O2 ${CT_EXTRA_CFLAGS_FOR_BUILD}"  \
         "${gdb_src_dir}/configure"                      \
             --build=${CT_BUILD}                         \
             --host=${CT_HOST}                           \
-- 
Nye Liu
nyet@mrv.com
(818) 772-6235x248
(818) 772-0576 fax

"Who would be stupid enough to quote a fictitious character?"
	-- Don Quixote

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