Skip to content

Commit d0777cd

Browse files
committed
Add ADDFLAGS reference to LDFLAGS in Linux makefiles
1 parent 40f7e42 commit d0777cd

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ include build/git.mk
1111
#CFLAGS = -g $(shell sdl-config --cflags) -I/usr/local/include/SDL -DUSE_SDL -DDEFAULT_IGNORE -Wall $(GITFLAGS) $(ADDFLAGS)
1212
CFLAGS = -O3 -fPIE $(shell sdl-config --cflags) -DUSE_SDL -DDEFAULT_IGNORE -Wall $(GITFLAGS) $(ADDFLAGS)
1313

14-
LDFLAGS +=
14+
LDFLAGS += $(ADDFLAGS)
1515

1616
LIBS = -lm $(shell sdl-config --libs) -ldl -pthread -lrt -lX11
1717

makefile.text

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ include build/git.mk
1111
#CFLAGS = -g -I/usr/include/SDL -DNO_SDL -DDEFAULT_IGNORE -Wall $(GITFLAGS) $(ADDFLAGS)
1212
CFLAGS = -O3 -fPIE -I/usr/include/SDL -DNO_SDL -DDEFAULT_IGNORE -Wall $(GITFLAGS) $(ADDFLAGS)
1313

14-
LDFLAGS =
14+
LDFLAGS = $(ADDFLAGS)
1515

1616
LIBS = -lm -ldl -lpthread -lrt
1717

0 commit comments

Comments
 (0)