diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2023-02-26 15:10:37 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2023-02-26 15:10:37 +0100 |
commit | 44f557e402e026b67de66f820617e38b6bc57435 (patch) | |
tree | ff5bc43cc4d69a878f6d7349b439d2140d8d8fc5 /mk | |
parent | cf23443ea2aade2d1a1e538518be771f775eb3eb (diff) |
riscv: -fPIC for c++ apps
Diffstat (limited to 'mk')
-rw-r--r-- | mk/vars.mk | 1 |
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 |