Skip to content

Commit 30bbf51

Browse files
committed
statically link winpthread
1 parent 57057a6 commit 30bbf51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

emulator/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ objects := $(patsubst %.cpp, obj/%.o, $(notdir $(sources)))
1414
_dummy := $(shell mkdir -p obj)
1515

1616
all: $(objects)
17-
g++ -L ./lib $(objects) -static-libgcc -static-libstdc++ -lmingw32 -lSDL2main -lSDL2 -lSDL2_image -llua53 -lreadline -lhistory -ltermcap -o casioemu.exe
17+
g++ -L ./lib $(objects) -static-libgcc -static-libstdc++ -lmingw32 -lSDL2main -lSDL2 -lSDL2_image -llua53 -lreadline -lhistory -ltermcap -Wl,-Bstatic -lstdc++ -lpthread -o casioemu.exe
1818

1919
obj/%.o: %.cpp
2020
g++ -O2 -std=c++14 -Wall -Wextra -Werror -pedantic -I ./include -c $< -o $@

0 commit comments

Comments
 (0)