diff options
author | David Schulz <david.schulz@nokia.com> | 2012-09-20 08:27:34 +0200 |
---|---|---|
committer | hjk <qthjk@ovi.com> | 2012-09-20 09:38:51 +0200 |
commit | 5234307cbf606c7195fda2fd44a9daaa561947e5 (patch) | |
tree | 434fd4e37f87dea535d09c5666697f4d51892229 /dist/gdb | |
parent | d45ae70db6a26f8c91ba2e8a4e02ed33d6859527 (diff) | |
download | qt-creator-5234307cbf606c7195fda2fd44a9daaa561947e5.tar.gz |
Debugger: Fix gdb makefile for Ubuntu >= 11.10
Since Ubuntu 11.10 the linker option --as-needed is default,
which causes a build failure.
https://wiki.ubuntu.com/OneiricOcelot/ReleaseNotes#GCC_4.6_Toolchain
Fixed by passing "-Wl,--no-as-needed" to the linker.
Change-Id: Iea1db17d0930e4d4d08fa1e80ec594faa1ab2031
Reviewed-by: hjk <qthjk@ovi.com>
Diffstat (limited to 'dist/gdb')
-rw-r--r-- | dist/gdb/Makefile.linux | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dist/gdb/Makefile.linux b/dist/gdb/Makefile.linux index d75a203b21..bebd2a0542 100644 --- a/dist/gdb/Makefile.linux +++ b/dist/gdb/Makefile.linux @@ -81,7 +81,7 @@ ${gdbtargets}: ${targetdir}/gdb-%: ${staging}/gdb-${version}/configure ${staging test -e ${staging}/gdb-${version}-$* || mkdir ${staging}/gdb-${version}-$* export PYTHONHOME=${staging} && \ export PATH="${staging}/bin/:$$PATH" && \ - export LDFLAGS="-pthread -lm" && \ + export LDFLAGS="-Wl,--no-as-needed -pthread -lm" && \ cd ${staging}/gdb-${version}-$* && \ ${staging}/gdb-${version}/configure --disable-nls --target=$* --with-separate-debug-dir="" \ --disable-werror --with-python=${staging} --with-libexpat-prefix=${staging} && \ |