mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-25 05:11:49 +00:00
take 2
This commit is contained in:
parent
cfaa34e7ef
commit
c4ef49a41f
2 changed files with 3 additions and 2 deletions
|
@ -114,7 +114,7 @@ class BuildTarget(Target):
|
|||
if cxx_compiler := state.cxx_compiler():
|
||||
env['CXX'] = str(cxx_compiler)
|
||||
|
||||
for prefix in ('AR', 'C', 'CPP', 'CXX', 'OBJC', 'OBJCXX'):
|
||||
for prefix in ('C', 'CPP', 'CXX', 'OBJC', 'OBJCXX'):
|
||||
state.update_environment(f'{prefix}FLAGS', f'-I{state.include_path}')
|
||||
|
||||
state.update_environment('LDFLAGS', f'-L{state.lib_path}')
|
||||
|
|
|
@ -516,7 +516,8 @@ class QuasiGlibTarget(BuildTarget):
|
|||
os.makedirs(lib_path, exist_ok=True)
|
||||
|
||||
commands = (
|
||||
(state.cxx_compiler(), '-std=c++11', '-O3', '-c', state.patch_path / f'{self.name}.cpp'),
|
||||
[state.cxx_compiler(), '-std=c++11', '-O3', '-c', state.patch_path / f'{self.name}.cpp']
|
||||
+ shlex.split(state.environment['CXXFLAGS']),
|
||||
(state.host() + '-ar', '-crs', lib_path / f'lib{self.name}.a', f'{self.name}.o'),
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue