Skip to content

Commit

Permalink
Try to link static things
Browse files Browse the repository at this point in the history
Try to link static things
  • Loading branch information
SmileYzn authored Jan 15, 2024
1 parent e91bd0a commit 5cf0704
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions AccuracyFix/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -56,4 +56,4 @@ default: all

clean:
rm -rf Release/*.o
rm -rf Release/*.so
rm -rf Release/*.so

0 comments on commit 5cf0704

Please sign in to comment.