mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Some systems want -ldl as the end, so let's do that
This commit is contained in:
parent
05fcc58b2f
commit
b3f094bf40
10
bam.lua
10
bam.lua
|
@ -255,11 +255,9 @@ function build(settings)
|
||||||
if platform == "macosx" then
|
if platform == "macosx" then
|
||||||
settings.link.frameworks:Add("Carbon")
|
settings.link.frameworks:Add("Carbon")
|
||||||
settings.link.frameworks:Add("AppKit")
|
settings.link.frameworks:Add("AppKit")
|
||||||
settings.link.libs:Add("dl")
|
|
||||||
settings.link.libs:Add("crypto")
|
settings.link.libs:Add("crypto")
|
||||||
else
|
else
|
||||||
settings.link.libs:Add("pthread")
|
settings.link.libs:Add("pthread")
|
||||||
settings.link.libs:Add("dl")
|
|
||||||
settings.link.libs:Add("rt")
|
settings.link.libs:Add("rt")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -315,7 +313,6 @@ function build(settings)
|
||||||
client_settings.link.libs:Add("X11")
|
client_settings.link.libs:Add("X11")
|
||||||
client_settings.link.libs:Add("GL")
|
client_settings.link.libs:Add("GL")
|
||||||
client_settings.link.libs:Add("GLU")
|
client_settings.link.libs:Add("GLU")
|
||||||
client_settings.link.libs:Add("dl")
|
|
||||||
end
|
end
|
||||||
|
|
||||||
elseif family == "windows" then
|
elseif family == "windows" then
|
||||||
|
@ -342,6 +339,13 @@ function build(settings)
|
||||||
config.opus:Apply(client_settings)
|
config.opus:Apply(client_settings)
|
||||||
config.ogg:Apply(client_settings)
|
config.ogg:Apply(client_settings)
|
||||||
|
|
||||||
|
if family == "unix" then
|
||||||
|
engine_settings.link.libs:Add("dl")
|
||||||
|
server_settings.link.libs:Add("dl")
|
||||||
|
client_settings.link.libs:Add("dl")
|
||||||
|
launcher_settings.link.libs:Add("dl")
|
||||||
|
end
|
||||||
|
|
||||||
engine = Compile(engine_settings, Collect("src/engine/shared/*.cpp", "src/base/*.c"))
|
engine = Compile(engine_settings, Collect("src/engine/shared/*.cpp", "src/base/*.c"))
|
||||||
client = Compile(client_settings, Collect("src/engine/client/*.cpp"))
|
client = Compile(client_settings, Collect("src/engine/client/*.cpp"))
|
||||||
server = Compile(server_settings, Collect("src/engine/server/*.cpp"))
|
server = Compile(server_settings, Collect("src/engine/server/*.cpp"))
|
||||||
|
|
Loading…
Reference in a new issue