From dd4fa59714283cb6eab848a2d5b6f76c15d05f41 Mon Sep 17 00:00:00 2001 From: Christophe Lyon Date: Mon, 5 Mar 2018 13:48:10 +0000 Subject: config/gdbserver.conf: Fix bug #3344, remove -static. Linking gdbserver with -static results in a broken executable, because it's also linked with -Wl,--dynamic-list=${srcdir}/proc-service.list which expects a dynamically-linked executable. The build log contains this warning: warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking Change-Id: Id74b7360c80a5f1a18531134de354bd0fe5e2a36 --- config/gdbserver.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/gdbserver.conf b/config/gdbserver.conf index d30d90c4..b2ccbbf1 100644 --- a/config/gdbserver.conf +++ b/config/gdbserver.conf @@ -4,7 +4,7 @@ latest="binutils-gdb.git~gdb-8.1-branch" # If yes, only static linking will be used static_link=yes -default_configure_flags="LDFLAGS=-static CPPFLAGS=--sysroot=${sysroots} CFLAGS=--sysroot=${sysroots} CXXFLAGS=--sysroot=${sysroots}" +default_configure_flags="CPPFLAGS=--sysroot=${sysroots} CFLAGS=--sysroot=${sysroots} CXXFLAGS=--sysroot=${sysroots}" # This is a list of default flags always supplied to "make check". runtest_flags="" -- cgit v1.2.3