diff --git a/build/premake/premake4.lua b/build/premake/premake4.lua index 5c5c5542d2..847367983f 100644 --- a/build/premake/premake4.lua +++ b/build/premake/premake4.lua @@ -282,6 +282,7 @@ function project_set_build_flags() end if os.is("linux") or os.is("bsd") then + buildoptions { "-fPIC" } linkoptions { "-Wl,--no-undefined", "-Wl,--as-needed" } end