Browse Source

riscv: -fPIC for c++ apps

Waldemar Brodkorb 1 year ago
parent
commit
44f557e402
1 changed files with 1 additions and 0 deletions
  1. 1 0
      mk/vars.mk

+ 1 - 0
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