From f760fe9709da5a0e48ec339b6c88ecbd3d305396 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 20 Aug 2008 13:57:09 -0400 Subject: mkfs.ubifs: set CFLAGS/LDLIBS properly CFLAGS should only be set as a default instead of overriding the user's choices. LDLIBS is for adding libraries, not LDFLAGS. Signed-off-by: Mike Frysinger Signed-off-by: Artem Bityutskiy --- mkfs.ubifs/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mkfs.ubifs/Makefile') diff --git a/mkfs.ubifs/Makefile b/mkfs.ubifs/Makefile index 9487c14..467ae1a 100644 --- a/mkfs.ubifs/Makefile +++ b/mkfs.ubifs/Makefile @@ -1,8 +1,9 @@ DESTDIR := /usr/local SBINDIR=/usr/sbin ALL_SOURCES=*.[ch] hashtable/*.[ch] -CFLAGS := $(CFLAGS) -Wall -O0 -ggdb -LDFLAGS := $(LDFLAGS) -lz -llzo2 -lm -luuid +CFLAGS ?= -O0 -ggdb +CFLAGS += -Wall +LDLIBS += -lz -llzo2 -lm -luuid TARGETS = mkfs.ubifs all: $(TARGETS) -- cgit v1.2.3