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] |
Hi, I have been experimenting with som canadian builds and trying to build GDB. After adding builds of ncurses and expat on the host-platform I get error when doing a static build (CT_GDB_CROSS_STATIC=y). In the script file 200-gdb.sh I find this code: if [ "${CT_GDB_CROSS}" = "y" ]; then : : if [ "${CT_GDB_CROSS_STATIC}" = "y" ]; then CC_for_gdb="gcc -static" LD_for_gdb="ld -static" fi : : fi But this finds the 'gcc' installed natively on the build-platform, and that gives errors. If I change this to be '${CT_HOST_PREFIX}gcc -static' and '${CT_HOST_PREFIX}ld -static' it seems to work OK. So, should these lines be changed to: if [ "${CT_GDB_CROSS_STATIC}" = "y" ]; then CC_for_gdb="${CT_HOST_PREFIX}gcc -static" LD_for_gdb="${CT_HOST_PREFIX}ld -static -static" fi or somthing along these lines? Regards Per A. -- 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] |