diff options
Diffstat (limited to 'Sluift/SConscript')
-rw-r--r-- | Sluift/SConscript | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/Sluift/SConscript b/Sluift/SConscript index 74b266c..ae51f57 100644 --- a/Sluift/SConscript +++ b/Sluift/SConscript @@ -1,3 +1,5 @@ +import platform + Import("env") if env["SCONS_STAGE"] == "build" : @@ -5,14 +7,16 @@ if env["SCONS_STAGE"] == "build" : myenv.UseFlags(env["LUA_FLAGS"]) myenv.UseFlags(env["SWIFTEN_FLAGS"]) myenv.UseFlags(env["SWIFTEN_DEP_FLAGS"]) - myenv["SHLIBPREFIX"] = "" + if myenv["PLATFORM"] == "win32" : 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", - ]) + + # Temporarily not building plugin on amd64, because it + # requires the whole build to be done with -fPIC + if myenv["PLATFORM"] != "posix" or platform.machine() != "amd64" : + myenv.SharedLibrary("sluift", [ + "sluift.cpp", + ]) |