From 23446707de8ecb843698123544cf6fb005ad7c65 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Wed, 5 Sep 2018 00:06:59 -0400 Subject: [PATCH] ArchitectureRules: Pass -shared to the universally to the linker when using Clang. --- build/jam/ArchitectureRules | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build/jam/ArchitectureRules b/build/jam/ArchitectureRules index 07bd79e646..a7db33126d 100644 --- a/build/jam/ArchitectureRules +++ b/build/jam/ArchitectureRules @@ -52,8 +52,9 @@ rule ArchitectureSetup architecture case x86 : archFlags += -march=pentium ; } if $(HAIKU_CC_IS_CLANG_$(architecture)) = 1 { - # TODO: This should be included in Clang's compiler specs. + # TODO: These should be included in Clang's compiler specs. archFlags += -fPIC ; + HAIKU_LINKFLAGS_$(architecture) += -shared ; } ccBaseFlags += $(archFlags) ;