summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2023-02-26 15:10:37 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2023-02-26 15:10:37 +0100
commit44f557e402e026b67de66f820617e38b6bc57435 (patch)
treeff5bc43cc4d69a878f6d7349b439d2140d8d8fc5 /mk
parentcf23443ea2aade2d1a1e538518be771f775eb3eb (diff)
riscv: -fPIC for c++ apps
Diffstat (limited to 'mk')
-rw-r--r--mk/vars.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/mk/vars.mk b/mk/vars.mk
index 01a69ce68..86079d09a 100644
--- a/mk/vars.mk
+++ b/mk/vars.mk
@@ -201,6 +201,7 @@ endif
ifeq ($(ADK_TARGET_ARCH_RISCV64)$(ADK_TARGET_ARCH_RISCV32),y)
ifeq ($(ADK_TARGET_BINFMT_FLAT),y)
TARGET_CFLAGS+= -fPIC
+TARGET_CXXFLAGS+= -fPIC
endif
endif