From 1b44faece5978e3a0c8e9ba864e0306ff46471be Mon Sep 17 00:00:00 2001 From: MeepDarknessMeep Date: Wed, 23 Sep 2015 15:36:22 -0400 Subject: [PATCH] Removed a file which causes lots of issues on Unix --- Tier1/premake5.lua | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Tier1/premake5.lua b/Tier1/premake5.lua index 0e2e200c40..b173908c8b 100644 --- a/Tier1/premake5.lua +++ b/Tier1/premake5.lua @@ -52,9 +52,22 @@ if os.is "windows" then links { "Ws2_32", "Rpcrt4" } files "../src/tier1/processor_detect.cpp" else + +--[[ + local function _WRAP(name) + buildoptions("-Xlinker --wrap="..name) + end + + _WRAP("fopen") _WRAP("freopen") _WRAP("open") _WRAP("creat") _WRAP("access") _WRAP("__xstat") + _WRAP("stat") _WRAP("lstat") _WRAP("fopen64") _WRAP("open64") _WRAP("opendir") _WRAP("__lxstat") + _WRAP("chmod") _WRAP("chown") _WRAP("lchown") _WRAP("symlink") _WRAP("link") _WRAP("__lxstat64") + _WRAP("mknod") _WRAP("utimes") _WRAP("unlink") _WRAP("rename") _WRAP("utime") _WRAP("__xstat64") + _WRAP("mount") _WRAP("mkfifo") _WRAP("mkdir") _WRAP("rmdir") _WRAP("scandir") _WRAP("realpath") +]]-- + files { "../src/tier1/processor_detect_linux.cpp", "../src/tier1/qsort_s.cpp", - "../src/tier1/pathmatch.cpp" +-- "../src/tier1/pathmatch.cpp" } end