limine-install: Pass LDFLAGS to CC

This commit is contained in:
mintsuki 2022-02-14 22:53:28 +01:00
parent 419d4934db
commit d510a29045
2 changed files with 3 additions and 2 deletions

View File

@ -40,6 +40,8 @@ export AWK
CFLAGS ?= @CFLAGS@
export CFLAGS
LDFLAGS ?= @LDFLAGS@
export LDFLAGS
LIMINE_CFLAGS ?= @LIMINE_CFLAGS@
export LIMINE_CFLAGS

View File

@ -2,7 +2,6 @@ CC ?= cc
INSTALL ?= ./install-sh
PREFIX ?= /usr/local
DESTDIR ?=
CFLAGS ?= -g -O2 -pipe -Wall -Wextra
@ -35,4 +34,4 @@ clean:
rm -f limine-install limine-install.exe
limine-install: limine-install.c
$(CC) $(CFLAGS) -std=c11 limine-install.c -o $@
$(CC) $(CFLAGS) $(LDFLAGS) -std=c11 limine-install.c -o $@