diff options
author | John-Mark Bell <jmb@netsurf-browser.org> | 2022-11-03 18:20:07 +0000 |
---|---|---|
committer | John-Mark Bell <jmb@netsurf-browser.org> | 2022-11-03 18:20:07 +0000 |
commit | b6553680a1c58e3b68124053bee89f3e15b76131 (patch) | |
tree | 83a136446018d9d65b8f7483b4a78fb4ea363370 | |
parent | 3bbbb9cfe0c2b2d22986bbf4455f0e772f64bbb2 (diff) | |
download | toolchains-b6553680a1c58e3b68124053bee89f3e15b76131.tar.gz toolchains-b6553680a1c58e3b68124053bee89f3e15b76131.tar.bz2 |
libexpat/m68k-unknown-amigaos: explicit -lgcc
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/Makefile | 5 |
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),) |