diff options
author | Mark Brand <mabrand@mabrand.nl> | 2020-05-15 11:47:03 (GMT) |
---|---|---|
committer | Mark Brand <mabrand@mabrand.nl> | 2020-05-15 12:09:18 (GMT) |
commit | 8b637cf11dcaacc9415a0e56c28a2ebcf69520af (patch) | |
tree | ffc73bf5457e9641f119caefd9eea6d7b6c9da22 /src/gdb.mk | |
parent | 6ca17ea3e5fa3696501d1343452d9081d50c34ed (diff) | |
download | mxe-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.mk | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |