|
|
@ -312,10 +312,7 @@ class CLikeCompiler: |
|
|
|
|
|
|
|
|
|
|
|
if mode == 'link': |
|
|
|
if mode == 'link': |
|
|
|
# Add LDFLAGS from the env |
|
|
|
# Add LDFLAGS from the env |
|
|
|
sys_ld_args = env.coredata.get_external_link_args(self.for_machine, self.language) |
|
|
|
largs += env.coredata.get_external_link_args(self.for_machine, self.language) |
|
|
|
# CFLAGS and CXXFLAGS go to both linking and compiling, but we want them |
|
|
|
|
|
|
|
# to only appear on the command line once. Remove dupes. |
|
|
|
|
|
|
|
largs += [x for x in sys_ld_args if x not in sys_args] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cargs += self.get_compiler_args_for_mode(mode) |
|
|
|
cargs += self.get_compiler_args_for_mode(mode) |
|
|
|
return cargs, largs |
|
|
|
return cargs, largs |
|
|
|