From ee1c04378c471dfea04808963db78a91fc89d62e Mon Sep 17 00:00:00 2001 From: "Kirill K. Smirnov" Date: Mon, 5 Dec 2016 23:39:55 +0300 Subject: debug/gdb: restore comments There are two separate issues with gdb configure usage: 1) inspecting build system libraries while cross-compiling; 2) preferring a shared library over static one. The first usage issue is described and fixed now. The second issue was described but the notes were removed for some reason. This patch restores those notes. Suggested-by: Alexey Neyman Signed-off-by: Kirill K. Smirnov diff --git a/scripts/build/debug/300-gdb.sh b/scripts/build/debug/300-gdb.sh index ac9a657..d3510d6 100644 --- a/scripts/build/debug/300-gdb.sh +++ b/scripts/build/debug/300-gdb.sh @@ -72,6 +72,12 @@ do_debug_gdb_build() { # For gdb-cross this combination of flags forces # gdb configure to fall back to default '-lexpat' flag # which is acceptable. + # + # NOTE: DO NOT USE --with-libexpat-prefix (until GDB configure is smarter)!!! + # It conflicts with a static build: GDB's configure script will find the shared + # version of expat and will attempt to link that, despite the -static flag. + # The link will fail, and configure will abort with "expat missing or unusable" + # message. cross_extra_config+=("--with-expat") cross_extra_config+=("--without-libexpat-prefix") @@ -183,6 +189,12 @@ do_debug_gdb_build() { # # To prevent this '--without-libexpat-prefix' flag must be passed. # Thus configure falls back to '-lexpat', which is exactly what we want. + # + # NOTE: DO NOT USE --with-libexpat-prefix (until GDB configure is smarter)!!! + # It conflicts with a static build: GDB's configure script will find the shared + # version of expat and will attempt to link that, despite the -static flag. + # The link will fail, and configure will abort with "expat missing or unusable" + # message. native_extra_config+=("--with-expat") native_extra_config+=("--without-libexpat-prefix") -- cgit v0.10.2-6-g49f6