[PATCH] mkfs.ubifs: set CFLAGS/LDLIBS properly
Mike Frysinger
vapier at gentoo.org
Wed Aug 20 13:57:09 EDT 2008
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 at gentoo.org>
---
mkfs.ubifs/Makefile | 5 +++--
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)
--
1.5.6.5
More information about the linux-mtd
mailing list