summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn-Mark Bell <jmb@netsurf-browser.org>2022-11-03 18:20:07 +0000
committerJohn-Mark Bell <jmb@netsurf-browser.org>2022-11-03 18:20:07 +0000
commitb6553680a1c58e3b68124053bee89f3e15b76131 (patch)
tree83a136446018d9d65b8f7483b4a78fb4ea363370
parent3bbbb9cfe0c2b2d22986bbf4455f0e772f64bbb2 (diff)
downloadtoolchains-master.tar.gz
toolchains-master.tar.bz2
libexpat/m68k-unknown-amigaos: explicit -lgccHEADmaster
For whatever reason (and this really should not be necessary), linking will fail without doing this as libgcc gets evaluated by ld after libm, and thus cannot resolve the symbols it needs.
-rw-r--r--sdk/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/sdk/Makefile b/sdk/Makefile
index 82cdc62..4c8c6a7 100644
--- a/sdk/Makefile
+++ b/sdk/Makefile
@@ -171,7 +171,10 @@ ifeq ($(TARGET),m68k-unknown-amigaos)
else
LIBCURL_ENV := CFLAGS="-I$(GCCSDK_INSTALL_ENV)/netinclude -D__NO_NET_API" LIBS="-lm"
endif
- LIBEXPAT_ENV := LDFLAGS="-lm"
+ # XXX: libgcc is meant to be implied, but for some reason that
+ # results in ld evaluating it after libm and thus failing to find symbols.
+ # Hack around it by forcing the link order here.
+ LIBEXPAT_ENV := LDFLAGS="-lgcc -lm"
endif
ifeq ($(SDK_ITEMS),)