[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MiNT] [PATCH] kernel_nocflags for info.c



Hello.

I have discovered that the kernel_nocflags options were ignored when compiling info.c. Also, /kern/buildinfo was wrong. This was probably not an issue, because kernel_nocflags was not used.

The attached patch fixes this problem.

Alan, please commit !

info.patch
Honor kernel_nocflags when compiling info.c. Contributed by Vincent Riviere.

--
Vincent Rivière
diff -x CVS -aurN freemint.orig/sys/Makefile.objs freemint.definitions/sys/Makefile.objs
--- freemint.orig/sys/Makefile.objs	2011-03-25 00:53:53.984375000 +0100
+++ freemint.definitions/sys/Makefile.objs	2011-06-15 22:34:42.265625000 +0200
@@ -76,13 +76,12 @@
 		$(LIBS)
 
 $(BUILDINFO): compiler buildheader buildserial
-	$(CC) $(CFLAGS) -o $@ -c $(srcdir)/$(BUILD).c
 
 compiler:
 	cd $(srcdir)/buildinfo; \
 	CC="$(CC)" \
-	OPTS="$(GENERAL) $(MODEL) $(OPTS)" \
-	DEFS="$(DEFINITIONS)" \
+	OPTS="$(filter-out $(nocflags), $(MODEL) $(GENERAL) $(OPTS))" \
+	DEFS="$(filter-out $(nocflags), $(DEFINITIONS))" \
 	sh cdef.sh
 
 buildheader: