Description: Pass CFLAGS, LDFLAGS and friends properly to the C compiler This way, hardening flags can be passed properly. Author: Axel Beckert Index: filter/Makefile.SH =================================================================== --- filter.orig/Makefile.SH 2016-02-20 04:25:53.921232360 +0100 +++ filter/Makefile.SH 2016-02-20 04:26:40.913115592 +0100 @@ -23,13 +23,13 @@ # Variables # Variables established by Configure CC = $cc -CCFLAGS = $ccflags $xencf +CCFLAGS ?= $ccflags $xencf CHGRP = $chgrp CHMOD = $chmod CP = $cp DEST = \$(DESTDIR)$bin ECHO = $echo -LFLAGS = $ldflags $xenlf +LDFLAGS ?= $ldflags $xenlf LIB = $lib LIB2 = $libs LIBS = $termlib $dbm @@ -53,7 +53,7 @@ #DEBUG = -DDEBUG # Other variables -CFLAGS = $(CCFLAGS) $(OPTIMIZE) $(DEBUG) $(DACSNET) +CFLAGS ?= $(CCFLAGS) $(OPTIMIZE) $(DEBUG) $(DACSNET) # Definitions of variables FILTER_SRC = actions.c \ @@ -120,7 +120,7 @@ # Dependencies and rules for compiling programs filter: $& $(FILTER_OBJ) - $(CC) $(LFLAGS) -o $@ $(FILTER_OBJ) + $(CC) $(LDFLAGS) -o $@ $(FILTER_OBJ) # Dependencies and rules for installing programs from bin directory $(DEST)/filter: filter