diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-09-11 19:08:28 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-09-11 19:08:28 +0000 |
commit | 9540a3772e6b0c6a2d502c6ae13d52aebda75acb (patch) | |
tree | 6dca71d5cefd646d55f766dabc20da80e1e209d4 /sys-fs/yaffs2-utils/files | |
parent | Convert to git and clean up a bit #382327 by Paul Osmialowski. (diff) | |
download | historical-9540a3772e6b0c6a2d502c6ae13d52aebda75acb.tar.gz historical-9540a3772e6b0c6a2d502c6ae13d52aebda75acb.tar.bz2 historical-9540a3772e6b0c6a2d502c6ae13d52aebda75acb.zip |
Convert to git and clean up a bit #382327 by Paul Osmialowski.
Package-Manager: portage-2.2.0_alpha51/cvs/Linux x86_64
Diffstat (limited to 'sys-fs/yaffs2-utils/files')
-rw-r--r-- | sys-fs/yaffs2-utils/files/yaffs2-utils-9999-build.patch | 31 |
1 files changed, 19 insertions, 12 deletions
diff --git a/sys-fs/yaffs2-utils/files/yaffs2-utils-9999-build.patch b/sys-fs/yaffs2-utils/files/yaffs2-utils-9999-build.patch index 4157f59dbbeb..c820ee554cec 100644 --- a/sys-fs/yaffs2-utils/files/yaffs2-utils-9999-build.patch +++ b/sys-fs/yaffs2-utils/files/yaffs2-utils-9999-build.patch @@ -1,24 +1,31 @@ ---- yaffs2/utils/Makefile -+++ yaffs2/utils/Makefile -@@ -16,7 +16,7 @@ +--- a/utils/Makefile ++++ b/utils/Makefile +@@ -16,14 +16,13 @@ #KERNELDIR = /usr/src/kernel-headers-2.4.18 --CFLAGS = -I/usr/include -I.. -O2 -Wall -DCONFIG_YAFFS_UTIL -+CFLAGS+= -I.. -Wall -DCONFIG_YAFFS_UTIL +-CFLAGS = -O2 -Wall -DCONFIG_YAFFS_UTIL ++CFLAGS+= -Wall -DCONFIG_YAFFS_UTIL CFLAGS+= -Wshadow -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-declarations CFLAGS+= -Wmissing-prototypes -Wredundant-decls -Wnested-externs -Winline -@@ -44,10 +42,10 @@ $(COMMONOBJS) $(MKYAFFSIMAGEOBJS) $(MKYA + ## Change if you are using a cross-compiler + MAKETOOLS = + +-CC=$(MAKETOOLS)gcc + + COMMON_BASE_C_LINKS = yaffs_ecc.c + COMMON_BASE_LINKS = $(COMMON_BASE_C_LINKS) yaffs_ecc.h yaffs_guts.h yaffs_packedtags2.h yaffs_trace.h +@@ -57,10 +56,10 @@ $(COMMONOBJS) $(MKYAFFSIMAGEOBJS) $(MKYAFFS2IMAGEOBJS) : %.o: %.c $(CC) -c $(CFLAGS) $< -o $@ - mkyaffsimage: $(COMMONOBJS) $(MKYAFFSIMAGEOBJS) -- $(CC) -o $@ $(COMMONOBJS) $(MKYAFFSIMAGEOBJS) -+ $(CC) $(CFLAGS) -o $@ $(COMMONOBJS) $(MKYAFFSIMAGEOBJS) $(LDFLAGS) + mkyaffsimage: $(MKYAFFSIMAGEOBJS) $(COMMONOBJS) +- $(CC) -o $@ $^ ++ $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) - mkyaffs2image: $(COMMONOBJS) $(MKYAFFS2IMAGEOBJS) -- $(CC) -o $@ $(COMMONOBJS) $(MKYAFFS2IMAGEOBJS) -+ $(CC) $(CFLAGS) -o $@ $(COMMONOBJS) $(MKYAFFS2IMAGEOBJS) $(LDFLAGS) + mkyaffs2image: $(MKYAFFS2IMAGEOBJS) $(COMMONOBJS) +- $(CC) -o $@ $^ ++ $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) clean: |