summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-02-25 18:07:44 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-02-25 18:07:44 (GMT)
commit7c22c10412c9231f76cf71e0f1fb61788115f0b9 (patch)
tree889c4157b437cc2ba7327b7a753af5f84daaabc5 /Sluift/SConscript
parent8a076855fcec7ee3ab4a26a0402852781f116192 (diff)
downloadswift-7c22c10412c9231f76cf71e0f1fb61788115f0b9.zip
swift-7c22c10412c9231f76cf71e0f1fb61788115f0b9.tar.bz2
Add -fPIC to Sluift/Lua compile flags on Linux.
Diffstat (limited to 'Sluift/SConscript')
-rw-r--r--Sluift/SConscript2
1 files changed, 2 insertions, 0 deletions
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",
])