From 7c22c10412c9231f76cf71e0f1fb61788115f0b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be> Date: Fri, 25 Feb 2011 19:07:44 +0100 Subject: Add -fPIC to Sluift/Lua compile flags on Linux. 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"]) diff --git a/Sluift/SConscript b/Sluift/SConscript index a8d985e..74b266c 100644 --- a/Sluift/SConscript +++ b/Sluift/SConscript @@ -11,6 +11,8 @@ if env["SCONS_STAGE"] == "build" : myenv.Append(CPPDEFINES = ["SLUIFT_BUILD_DLL"]) elif myenv["PLATFORM"] == "darwin" : myenv["SHLIBSUFFIX"] = ".so" + elif myenv["PLATFORM"] == "posix" : + myenv.Append(CCFLAGS = ["-fPIC"]) myenv.SharedLibrary("sluift", [ "sluift.cpp", ]) -- cgit v0.10.2-6-g49f6