mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
fixed stack protector option
This commit is contained in:
parent
8dd58e48c3
commit
8769ee1b04
|
@ -204,6 +204,7 @@ function build(settings)
|
||||||
settings.linker.flags = settings.linker.flags .. " -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk"
|
settings.linker.flags = settings.linker.flags .. " -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk"
|
||||||
elseif config.stackprotector.value == 1 then
|
elseif config.stackprotector.value == 1 then
|
||||||
settings.cc.flags = settings.cc.flags .. " -fstack-protector -fstack-protector-all"
|
settings.cc.flags = settings.cc.flags .. " -fstack-protector -fstack-protector-all"
|
||||||
|
settings.linker.flags = settings.linker.flags .. " -fstack-protector -fstack-protector-all"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -259,6 +260,12 @@ function build(settings)
|
||||||
else
|
else
|
||||||
engine_settings.cc.flags = "-Wall"
|
engine_settings.cc.flags = "-Wall"
|
||||||
engine_settings.linker.flags = ""
|
engine_settings.linker.flags = ""
|
||||||
|
|
||||||
|
if config.stackprotector.value == 1 then
|
||||||
|
engine_settings.cc.flags = settings.cc.flags .. " -fstack-protector -fstack-protector-all"
|
||||||
|
engine_settings.linker.flags = settings.linker.flags .. " -fstack-protector -fstack-protector-all"
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue