summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn-Mark Bell <jmb@netsurf-browser.org>2022-11-01 20:02:44 +0000
committerJohn-Mark Bell <jmb@netsurf-browser.org>2022-11-03 18:29:13 +0000
commitd1ed006979f5bf00369b8e15baa61152ff69a262 (patch)
treee2ee6d5f6915b3b5b6fc9d0a65653738a8e4044d
parent0137ef9f9b088ad0836a06c866a1cc6037b0ef3e (diff)
downloadtoolchains-d1ed006979f5bf00369b8e15baa61152ff69a262.tar.gz
toolchains-d1ed006979f5bf00369b8e15baa61152ff69a262.tar.bz2
SDK/arm-unknown-riscos: poke function names
-rw-r--r--sdk/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/sdk/Makefile b/sdk/Makefile
index 674bb62..fc4ecd7 100644
--- a/sdk/Makefile
+++ b/sdk/Makefile
@@ -77,6 +77,10 @@ pkg_config_libdir__ := $(GCCSDK_INSTALL_ENV)/lib/pkgconfig
# Target
TARGET := $(shell $(cc__) -dumpmachine)
+ifeq ($(findstring -riscos,$(TARGET)),-riscos)
+ cflags__ := $(cflags__) -mpoke-function-name
+endif
+
# Environment
# Newer autotools objects to -I appearing in CFLAGS
cleanenv := PATH="$(path__)" CC="$(cc__)" CXX="$(cxx__)" AR="$(ar__)" RANLIB="$(ranlib__)" CPPFLAGS="$(cppflags__)" LDFLAGS="$(ldflags__)" PKG_CONFIG_LIBDIR="$(pkg_config_libdir__)"