configure: Set a default LINKFLAGS in addition to LDFLAGS.

The former is passed to the compiler when linking using it,
the latter is passed to ld when it is invoked directly.

Also modify ArchitectureRules to not overwrite this setting.
This commit is contained in:
Augustin Cavalier
2018-08-15 14:19:30 -04:00
parent 63cb446249
commit 252e4f6299
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -70,10 +70,10 @@ rule ArchitectureSetup architecture
# initial state for flags etc.
HAIKU_C++_$(architecture) ?= $(HAIKU_CC_$(architecture)) ;
HAIKU_LINK_$(architecture) = $(HAIKU_CC_$(architecture)) ;
HAIKU_LINKFLAGS_$(architecture) = $(ccBaseFlags) ;
HAIKU_CCFLAGS_$(architecture) += $(ccBaseFlags) -nostdinc ;
HAIKU_C++FLAGS_$(architecture) += $(ccBaseFlags) -nostdinc ;
HAIKU_LINKFLAGS_$(architecture) += $(ccBaseFlags) ;
HAIKU_ASFLAGS_$(architecture) += $(archFlags) -nostdinc ;
# strip is required