Skip to content

Commit

Permalink
Update Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
SmileYzn authored Sep 12, 2024
1 parent c3d6f0e commit efb449e
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions AccuracyFix/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit efb449e

Please sign in to comment.