summaryrefslogtreecommitdiffstats
path: root/src/gdb.mk
diff options
context:
space:
mode:
authorMark Brand <mabrand@mabrand.nl>2020-05-15 11:47:03 (GMT)
committerMark Brand <mabrand@mabrand.nl>2020-05-15 12:09:18 (GMT)
commit8b637cf11dcaacc9415a0e56c28a2ebcf69520af (patch)
treeffc73bf5457e9641f119caefd9eea6d7b6c9da22 /src/gdb.mk
parent6ca17ea3e5fa3696501d1343452d9081d50c34ed (diff)
downloadmxe-8b637cf11dcaacc9415a0e56c28a2ebcf69520af.zip
mxe-8b637cf11dcaacc9415a0e56c28a2ebcf69520af.tar.gz
mxe-8b637cf11dcaacc9415a0e56c28a2ebcf69520af.tar.bz2
gdb: linking workaround for multiple definitions
Multiple defintiions for some symbols such as PC are introduced by readline and termcap. This causes GCC 10 linking error. Related to: Default to -fno-common https://gcc.gnu.org/gcc-10/porting_to.html Credit: https://github.com/Ettercap/ettercap/issues/795
Diffstat (limited to 'src/gdb.mk')
-rw-r--r--src/gdb.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gdb.mk b/src/gdb.mk
index e1032cf..88b0372 100644
--- a/src/gdb.mk
+++ b/src/gdb.mk
@@ -24,7 +24,8 @@ define $(PKG)_BUILD
--disable-gdbtk \
--disable-tui \
host_configargs="LIBS=\"`$(TARGET)-pkg-config --libs dlfcn` -lmman\"" \
- CONFIG_SHELL=$(SHELL)
+ CONFIG_SHELL=$(SHELL) \
+ LDFLAGS='-Wl,--allow-multiple-definition'
$(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)'
# executables are always static and we don't want the rest