Skip to content

Commit 0d04d50

Browse files
committed
fix(makefile): fix the makefile
please refer to the file change history for details
1 parent 323924b commit 0d04d50

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ UPX = upx
55
REMOVE = del
66

77
STD = c++17
8-
LINK = -static \
9-
-I include/stdc_implemented \
8+
LINK = -I include/stdc_implemented \
109
-I src/ast \
1110
-I src/data_type \
1211
-I src/vm \
@@ -62,6 +61,7 @@ release:
6261
-o bin/stamon.exe \
6362
-O2 \
6463
-std=$(STD) \
64+
-static \
6565
$(LINK)
6666

6767
$(STRIP) -s bin/stamon.exe
@@ -74,6 +74,7 @@ release_win:
7474
-o bin/stamon.exe \
7575
-O2 \
7676
-std=$(STD) \
77+
-static \
7778
$(LINK)
7879

7980
$(STRIP) -s bin/stamon.exe
@@ -86,6 +87,7 @@ release_linux:
8687
-o bin/stamon \
8788
-O2 \
8889
-std=$(STD) \
90+
-static \
8991
$(LINK)
9092

9193
$(STRIP) -s bin/stamon

0 commit comments

Comments
 (0)