Skip to content

Commit

Permalink
Merge pull request #224 from stilor/ltrace
Browse files Browse the repository at this point in the history
Ltrace
  • Loading branch information
bhundven committed Oct 27, 2015
2 parents 7d3ef02 + 0a050d3 commit 195f6f2
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions samples/arm-cortex_a8-linux-gnueabi/crosstool.config
Expand Up @@ -20,4 +20,5 @@ CT_DEBUG_gdb=y
# CT_GDB_CROSS_PYTHON is not set
CT_GDB_NATIVE=y
CT_GDB_NATIVE_STATIC=y
CT_DEBUG_ltrace=y
CT_DEBUG_strace=y
Expand Up @@ -25,4 +25,5 @@ CT_DEBUG_duma=y
CT_DEBUG_gdb=y
CT_GDB_CROSS_STATIC=y
CT_GDB_NATIVE=y
CT_DEBUG_ltrace=y
CT_DEBUG_strace=y
1 change: 1 addition & 0 deletions samples/arm-unknown-linux-gnueabi/crosstool.config
Expand Up @@ -17,4 +17,5 @@ CT_DEBUG_duma=y
CT_DEBUG_gdb=y
# CT_GDB_CROSS_PYTHON is not set
CT_GDB_NATIVE=y
CT_DEBUG_ltrace=y
CT_DEBUG_strace=y
1 change: 1 addition & 0 deletions samples/arm-unknown-linux-uclibcgnueabi/crosstool.config
Expand Up @@ -20,4 +20,5 @@ CT_DEBUG_gdb=y
CT_GDB_CROSS_STATIC=y
CT_GDB_NATIVE=y
CT_GDB_NATIVE_STATIC=y
CT_DEBUG_ltrace=y
CT_DEBUG_strace=y
1 change: 1 addition & 0 deletions samples/arm-unknown-linux-uclibcgnueabihf/crosstool.config
Expand Up @@ -23,4 +23,5 @@ CT_DEBUG_gdb=y
CT_GDB_CROSS_STATIC=y
CT_GDB_NATIVE=y
CT_GDB_NATIVE_STATIC=y
CT_DEBUG_ltrace=y
CT_DEBUG_strace=y
1 change: 1 addition & 0 deletions samples/armeb-unknown-linux-gnueabi/crosstool.config
Expand Up @@ -18,4 +18,5 @@ CT_DEBUG_duma=y
CT_DEBUG_gdb=y
# CT_GDB_CROSS_PYTHON is not set
CT_GDB_NATIVE=y
CT_DEBUG_ltrace=y
CT_DEBUG_strace=y
1 change: 1 addition & 0 deletions samples/i686-nptl-linux-gnu/crosstool.config
Expand Up @@ -16,4 +16,5 @@ CT_DEBUG_duma=y
CT_DEBUG_gdb=y
# CT_GDB_CROSS_PYTHON is not set
CT_GDB_NATIVE=y
CT_DEBUG_ltrace=y
CT_DEBUG_strace=y
19 changes: 19 additions & 0 deletions scripts/build/cc/100-gcc.sh
Expand Up @@ -535,6 +535,16 @@ do_gcc_core_backend() {
CT_DoLog EXTRA "Installing ${log_txt}"
CT_DoExecLog ALL make ${JOBSFLAGS} ${extra_user_env} ${core_targets_install}

# Remove the libtool "pseudo-libraries": having them in the installed
# tree makes the libtoolized utilities that are built next assume
# that, for example, libsupc++ is an "accessory library", and not include
# -lsupc++ to the link flags. That breaks ltrace, for example.
CT_DoLog EXTRA "Housekeeping for final gcc compiler"
CT_Pushd "${prefix}"
find . -type f -name "*.la" -exec rm {} \; |CT_DoLog ALL
CT_Popd


if [ "${build_manuals}" = "yes" ]; then
CT_DoLog EXTRA "Building the GCC manuals"
CT_DoExecLog ALL make pdf html
Expand Down Expand Up @@ -932,6 +942,15 @@ do_gcc_backend() {
CT_DoLog EXTRA "Installing final gcc compiler"
CT_DoExecLog ALL make ${JOBSFLAGS} install

# Remove the libtool "pseudo-libraries": having them in the installed
# tree makes the libtoolized utilities that are built next assume
# that, for example, libsupc++ is an "accessory library", and not include
# -lsupc++ to the link flags. That breaks ltrace, for example.
CT_DoLog EXTRA "Housekeeping for final gcc compiler"
CT_Pushd "${prefix}"
find . -type f -name "*.la" -exec rm {} \; |CT_DoLog ALL
CT_Popd

if [ "${build_manuals}" = "yes" ]; then
CT_DoLog EXTRA "Building the GCC manuals"
CT_DoExecLog ALL make pdf html
Expand Down

0 comments on commit 195f6f2

Please sign in to comment.