diff options
author | Remko Tronçon <git@el-tramo.be> | 2011-02-25 18:07:44 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2011-02-25 18:07:44 (GMT) |
commit | 7c22c10412c9231f76cf71e0f1fb61788115f0b9 (patch) | |
tree | 889c4157b437cc2ba7327b7a753af5f84daaabc5 /3rdParty/Lua | |
parent | 8a076855fcec7ee3ab4a26a0402852781f116192 (diff) | |
download | swift-7c22c10412c9231f76cf71e0f1fb61788115f0b9.zip swift-7c22c10412c9231f76cf71e0f1fb61788115f0b9.tar.bz2 |
Add -fPIC to Sluift/Lua compile flags on Linux.
Diffstat (limited to '3rdParty/Lua')
-rw-r--r-- | 3rdParty/Lua/SConscript | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/3rdParty/Lua/SConscript b/3rdParty/Lua/SConscript index e6f267e..9063f97 100644 --- a/3rdParty/Lua/SConscript +++ b/3rdParty/Lua/SConscript @@ -33,6 +33,8 @@ if env.get("LUA_BUNDLED", False) : # Remove warn flags myenv.Replace(CCFLAGS = [flag for flag in env["CCFLAGS"] if flag not in ["-W", "-Wall"]]) + if myenv["PLATFORM"] == "posix" : + myenv.Append(CCFLAGS = ["-fPIC"]) myenv.MergeFlags(myenv["LUA_FLAGS"]) myenv.MergeFlags(myenv["PLATFORM_FLAGS"]) |