summaryrefslogtreecommitdiffstats
path: root/src/fluidsynth.mk
diff options
context:
space:
mode:
authorMark Brand <mabrand@mabrand.nl>2020-05-28 13:49:06 (GMT)
committerMark Brand <mabrand@mabrand.nl>2020-05-28 14:29:52 (GMT)
commitf534658abda5bda06aefd08aaa1ba736cb4c846d (patch)
tree6f05f13d5ecd6bbecff890b25a05b19611fd7584 /src/fluidsynth.mk
parent0451e18bd524753d08e202bc9ac6ae44e9c806b9 (diff)
downloadmxe-f534658abda5bda06aefd08aaa1ba736cb4c846d.zip
mxe-f534658abda5bda06aefd08aaa1ba736cb4c846d.tar.gz
mxe-f534658abda5bda06aefd08aaa1ba736cb4c846d.tar.bz2
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
Diffstat (limited to 'src/fluidsynth.mk')
-rw-r--r--src/fluidsynth.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fluidsynth.mk b/src/fluidsynth.mk
index a0c6af1..dec61a2 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