From 5cf0704fd44ab1a73a8fddb5fd165b91f85a5733 Mon Sep 17 00:00:00 2001 From: Cleverson Date: Mon, 15 Jan 2024 10:31:47 -0300 Subject: [PATCH] Try to link static things Try to link static things --- AccuracyFix/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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