From 5234307cbf606c7195fda2fd44a9daaa561947e5 Mon Sep 17 00:00:00 2001 From: David Schulz Date: Thu, 20 Sep 2012 08:27:34 +0200 Subject: 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 --- dist/gdb/Makefile.linux | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dist/gdb') 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} && \ -- cgit v1.2.3