]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
REmove the need for disable-werror
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 7 Feb 2010 03:50:30 +0000 (04:50 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 7 Feb 2010 03:50:30 +0000 (04:50 +0100)
conf/any-emu.rmk

index 7e9e349203b7063b56cdc68b8caa08c4539c79fe..77092454ba94082ba0868b47a96a0f956dbc5ac7 100644 (file)
@@ -20,12 +20,18 @@ kernel_img_SOURCES = kern/device.c kern/disk.c kern/dl.c  kern/env.c        \
        util/console.c  util/grub-emu.c util/misc.c                     \
        util/hostdisk.c util/getroot.c                                  \
        \
-       grub_emu_init.c gnulib/progname.c
+       grub_emu_init.c
 kernel_img_CFLAGS = $(CPPFLAGS) $(CFLAGS)
 kernel_img_LDFLAGS = $(COMMON_LDFLAGS)
 TARGET_NO_STRIP = yes
 TARGET_NO_DYNAMIC_MODULES = yes
 
+# progname.c always has warnings. Compile it separately.
+pkglib_MODULES += progname.mod
+progname_mod_SOURCES = gnulib/progname.c
+progname_mod_CFLAGS = $(COMMON_CFLAGS) -Wno-error
+progname_mod_LDFLAGS = $(COMMON_LDFLAGS)
+
 # For hostfs.mod.
 pkglib_MODULES += hostfs.mod
 hostfs_mod_SOURCES = util/hostfs.c