aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-08-20 13:57:09 -0400
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2008-08-21 11:53:36 +0300
commitf760fe9709da5a0e48ec339b6c88ecbd3d305396 (patch)
tree774e729f1fd4f2d73c96654e0d26f7fdb9504eea
parent5b1cfb9d09a8a40577e79262c6d79dfcde36b1b7 (diff)
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 <vapier@gentoo.org> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
-rw-r--r--mkfs.ubifs/Makefile5
1 files changed, 3 insertions, 2 deletions
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)