scons: fix issue #3132

This commit is contained in:
loonycyborg 2018-05-31 19:50:08 +03:00
parent 3abea03b42
commit 0c6885d4e8

View file

@ -164,7 +164,8 @@ elif env["PLATFORM"] == 'win32':
else:
wesnoth = client_env.WesnothProgram("wesnoth", ["wesnoth.cpp"] + libwesnoth_objects, have_client_prereqs)
client_env.Append(LINKFLAGS=['-Wl,--whole-archive', libwesnoth_widgets, '-Wl,--no-whole-archive'])
Depends(wesnoth, libwesnoth_widgets)
if have_client_prereqs:
Depends(wesnoth, libwesnoth_widgets)
#---wesnothd---
wesnothd_sources = GetSources("wesnothd")