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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user