build: Honor LIBS variable

This commit is contained in:
mintsuki 2022-09-20 23:10:19 +02:00
parent 025792e994
commit 58ef3bd8a9
2 changed files with 4 additions and 2 deletions

View File

@ -60,6 +60,8 @@ CFLAGS ?= @CFLAGS@
export CFLAGS
LDFLAGS ?= @LDFLAGS@
export LDFLAGS
LIBS ?= @LIBS@
export LIBS
CROSS_CFLAGS ?= @CROSS_CFLAGS@
export CROSS_CFLAGS

View File

@ -39,7 +39,7 @@ clean:
rm -f limine-version limine-version.exe
limine-deploy: limine-deploy.c
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -std=c99 -D__USE_MINGW_ANSI_STDIO limine-deploy.c -o $@
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -std=c99 -D__USE_MINGW_ANSI_STDIO limine-deploy.c $(LIBS) -o $@
limine-version: limine-version.c
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -std=c99 -D__USE_MINGW_ANSI_STDIO limine-version.c -o $@
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -std=c99 -D__USE_MINGW_ANSI_STDIO limine-version.c $(LIBS) -o $@