Link statically with GCC & C++ on Linux
This commit is contained in:
parent
d667a2460c
commit
972d584c0c
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ ifeq "$(COMPILER)" ""
|
|||
endif
|
||||
|
||||
CPLUS="$(COMPILER) -m32"
|
||||
CPP_LIB:=-L$(shell g++ -m32 -print-file-name=libstdc++.so | xargs dirname) -lstdc++ -ldl -lpthread
|
||||
CPP_LIB:=-L$(shell g++ -m32 -print-file-name=libstdc++.so | xargs dirname) -lstdc++ -ldl -lpthread -static-libstdc++ -static-libgcc
|
||||
|
||||
ARCH_CFLAGS=-march=pentium-m -mfpmath=387 -mno-sse
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue