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:24:06 +0000
commit19bad0e13de8b3f09d20efa380cfa2701fed5487 (patch)
tree373f77fc059c7544d44aa83f917867559bd09870
parent8e3aaa81006331ca878178ea940ea29cca3b7048 (diff)
downloadtoolchains-19bad0e13de8b3f09d20efa380cfa2701fed5487.tar.gz
toolchains-19bad0e13de8b3f09d20efa380cfa2701fed5487.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 9146367..a8dda57 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__)"