diff --git a/AccuracyFix/Makefile b/AccuracyFix/Makefile index 9cba212..2f78471 100644 --- a/AccuracyFix/Makefile +++ b/AccuracyFix/Makefile @@ -14,19 +14,12 @@ BIN_DIR = Release COMPILER = g++ OBJECTS = *.cpp + # Linker Libs LINKER = -static-libgcc -static-libstdc++ -# Compiler version check to static linking -RES_COMPILER_VERSION := $(shell expr "`$(COMPILER) -dumpversion`" ">=" "5") - -# Link static lib if compiler is newer than minimum version -ifeq "$(RES_COMPILER_VERSION)" "1" -LINKER += -static-libgcc -static-libstdc++ -endif - # C flags -CFLAGS = -std=gnu++11 -pipe -g0 -O3 -s -flto -funroll-loops -fno-stack-protector -g -DNDEBUG -Dlinux -D__linux__ -D_GLIBCXX_USE_CXX11_ABI=0 -m32 -msse3 -msse4.1 -shared +CFLAGS = -std=gnu++11 -shared -m32 -mtune=generic -msse3 -msse4.1 -pipe -g0 -O3 -s -flto -funroll-loops -fno-stack-protector -g -DNDEBUG -Dlinux -D__linux__ -DGLIBCXX_USE_CXX11_ABI=1 -U_FORTIFY_SOURCE # Include directory INCLUDE = -I. -I$(CSSDK)/common -I$(CSSDK)/dlls -I$(CSSDK)/engine -I$(CSSDK)/game_shared -I$(CSSDK)/pm_shared -I$(CSSDK)/public -I$(METAMOD)