From f534658abda5bda06aefd08aaa1ba736cb4c846d Mon Sep 17 00:00:00 2001 From: Mark Brand Date: Thu, 28 May 2020 15:49:06 +0200 Subject: [PATCH] fluidsynth: workaround for linking 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 --- src/fluidsynth.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/src/fluidsynth.mk b/src/fluidsynth.mk index a0c6af15..dec61a28 100644 --- a/src/fluidsynth.mk +++ b/src/fluidsynth.mk @@ -26,6 +26,7 @@ define $(PKG)_BUILD # compile test '$(TARGET)-gcc' \ -W -Wall -Werror -ansi -pedantic \ + -Wl,--allow-multiple-definition \ '$(TEST_FILE)' -o '$(PREFIX)/$(TARGET)/bin/test-fluidsynth.exe' \ `'$(TARGET)-pkg-config' --cflags --libs fluidsynth` endef