try get it to be static

This commit is contained in:
William Bell
2025-08-16 01:57:56 +01:00
parent f11890a8b3
commit cf2a54dbe8
2 changed files with 7 additions and 1 deletions

View File

@@ -119,6 +119,8 @@ jobs:
mingw-w64-x86_64-make
mingw-w64-x86_64-gmp
mingw-w64-x86_64-gc
mingw-w64-x86_64-gmp-static
mingw-w64-x86_64-gc-static
- name: Build Project
run: |

View File

@@ -12,7 +12,11 @@ LEXER_SRC = src/lexer/lex.l
LEXER_C = src/lexer/lex.yy.c
LEXER_H = src/lexer/lex.yy.h
CFLAGS = $(ARCHFLAGS) -lm -lgc -lgmp -Wall -Wextra -Wno-unused-function -Werror=unused-result -Iexternal/cwalk/include -Iexternal/libdye/include
LDFLAGS = -Wl,-Bstatic -lgc -lgmp -Wl,-Bdynamic -lm
LDFLAGS = -lgc -lgmp -lm
ifeq ($(MAKECMDGOALS),windows)
LDFLAGS = -Wl,-Bstatic -lgc -lgmp -Wl,-Bdynamic -lm
endif
all: $(BINARY)