diff --git a/AccuracyFix/Makefile b/AccuracyFix/Makefile index 3260acc..9cba212 100644 --- a/AccuracyFix/Makefile +++ b/AccuracyFix/Makefile @@ -15,14 +15,14 @@ COMPILER = g++ OBJECTS = *.cpp # Linker Libs -LINKER = +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-libstdc++ +LINKER += -static-libgcc -static-libstdc++ endif # C flags @@ -56,4 +56,4 @@ default: all clean: rm -rf Release/*.o - rm -rf Release/*.so \ No newline at end of file + rm -rf Release/*.so