diff --git a/configure b/configure index 0b6a2014..45eeaaa0 100755 --- a/configure +++ b/configure @@ -203,9 +203,7 @@ check_compiler_flag() local var="$3" local rv=0 - if [ -z "$var" ]; then - var="CFLAGS" - fi + [ -z "$var" ] && var="CFLAGS" printf "Checking if $CC supports -${mode}${flag} ... " cat <_ccflag.c diff --git a/prog.mk b/prog.mk index 349e5acf..238f04ed 100644 --- a/prog.mk +++ b/prog.mk @@ -1,7 +1,6 @@ -include $(TOPDIR)/config.mk OBJS ?= main.o -CFLAGS += $(PROG_CFLAGS) .PHONY: all all: $(BIN) $(BIN).static @@ -40,5 +39,6 @@ $(BIN).static: $(OBJS) $(BIN): $(OBJS) @printf " [CCLD]\t\t$@\n" - ${SILENT}$(CC) $^ $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(PROG_LDFLAGS) -o $@ + ${SILENT}$(CC) $^ $(CPPFLAGS) $(CFLAGS) $(PROG_CFLAGS) \ + $(LDFLAGS) $(PROG_LDFLAGS) -o $@