add cruft to SConstruct to help cross-compiling with readline
This commit is contained in:
parent
350579a668
commit
4281c602f2
1 changed files with 2 additions and 1 deletions
|
@ -415,7 +415,8 @@ if env["prereqs"]:
|
|||
if env["png"]:
|
||||
client_env.Append(CPPDEFINES = ["HAVE_LIBPNG"])
|
||||
|
||||
env["readline"] = env["readline"] and conf.CheckLib("readline")
|
||||
env["readline"] = env["readline"] and (conf.CheckLib("readline") or conf.CheckLib("readline6") or Warning("Can't find readline, disabling readline support."))
|
||||
#Note: the "readline6" part is to help out scons when cross-compiling, it didn't find my cross-compiled readline otherwise... feel free to figure out a cleaner solution. --iceiceice
|
||||
if env["readline"]:
|
||||
client_env.Append(CPPDEFINES = ["HAVE_READLINE"])
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue