ArchitectureRules: Pass -shared to the universally to the linker when using Clang.

This commit is contained in:
Augustin Cavalier
2018-09-08 18:56:33 -04:00
parent bd234de11c
commit 23446707de
+2 -1
View File
@@ -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) ;