[haiku-commits] haiku: hrev52244 - build/jam

  • From: waddlesplash <waddlesplash@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Fri, 17 Aug 2018 12:04:27 -0400 (EDT)

hrev52244 adds 1 changeset to branch 'master'
old head: 816a311dd7d3306d440e7bc87df79f771dee2750
new head: bd43e4ae23087fedf7261d62cbfcf85241b957ab
overview: 
https://git.haiku-os.org/haiku/log/?qt=range&q=bd43e4ae2308+%5E816a311dd7d3

----------------------------------------------------------------------------

bd43e4ae2308: ArchitectureRules: Add -fPIC and fix warning flags for Clang.

                              [ Augustin Cavalier <waddlesplash@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev52244
Commit:      bd43e4ae23087fedf7261d62cbfcf85241b957ab
URL:         https://git.haiku-os.org/haiku/commit/?id=bd43e4ae2308
Author:      Augustin Cavalier <waddlesplash@xxxxxxxxx>
Date:        Fri Aug 17 16:03:53 2018 UTC

----------------------------------------------------------------------------

1 file changed, 8 insertions(+), 2 deletions(-)
build/jam/ArchitectureRules | 10 ++++++++--

----------------------------------------------------------------------------

diff --git a/build/jam/ArchitectureRules b/build/jam/ArchitectureRules
index 2a0274c8f1..5afcefce30 100644
--- a/build/jam/ArchitectureRules
+++ b/build/jam/ArchitectureRules
@@ -51,6 +51,10 @@ rule ArchitectureSetup architecture
                case arm : archFlags += -march=armv7-a -mfloat-abi=hard ;
                case x86 : archFlags += -march=pentium ;
        }
+       if $(HAIKU_CC_IS_CLANG_$(architecture)) = 1 {
+               # TODO: This should be included in Clang's compiler specs.
+               archFlags += -fPIC ;
+       }
        ccBaseFlags += $(archFlags) ;
 
        if $(cpu) = arm {
@@ -122,8 +126,10 @@ rule ArchitectureSetup architecture
                -Wsign-compare -Wno-multichar ;
        # disable some Clang warnings that are not very useful
        if $(HAIKU_CC_IS_CLANG_$(architecture)) = 1 {
-               ccBaseFlags += -Wno-address-of-packed-member 
-Wno-unused-private-field
-                       -Wno-cast-align -Wno-gnu-designator ;
+               HAIKU_WARNING_CCFLAGS_$(architecture) += 
-Wno-address-of-packed-member
+                       -Wno-unused-private-field -Wno-cast-align 
-Wno-gnu-designator ;
+               HAIKU_WARNING_C++FLAGS_$(architecture) += 
-Wno-address-of-packed-member
+                       -Wno-unused-private-field -Wno-cast-align 
-Wno-gnu-designator ;
        }
 
        HAIKU_WERROR_FLAGS_$(architecture) = ;


Other related posts:

  • » [haiku-commits] haiku: hrev52244 - build/jam - waddlesplash