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-01 20:02:44 +0000
commit6a0e3141ee021b4867a39269c77fe26beb058534 (patch)
tree90bebe20686a9a0374d1559cb39f232fbabb580d
parent0c7fc8e52cefbe787bc5f33dcc9ae95ef3a5247c (diff)
downloadtoolchains-6a0e3141ee021b4867a39269c77fe26beb058534.tar.gz
toolchains-6a0e3141ee021b4867a39269c77fe26beb058534.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 aa89519..af66884 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__)"