]> www.infradead.org Git - mtd-utils.git/commitdiff
mkfs.ubifs: set CFLAGS/LDLIBS properly
authorMike Frysinger <vapier@gentoo.org>
Wed, 20 Aug 2008 17:57:09 +0000 (13:57 -0400)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Thu, 21 Aug 2008 08:53:36 +0000 (11:53 +0300)
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 <vapier@gentoo.org>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
mkfs.ubifs/Makefile

index 9487c14cd0da0a2062f4feabeeb901abde8cc88c..467ae1a74b41920f57524c2f56b371dfec146ca7 100644 (file)
@@ -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)