Noticed this when merging kbd-1.06-r1 on my mips box, it doesn't seem to be applying the CFLAGS I have in /etc/make.conf to the resultant compile. A snippet is pasted below. CFLAGS="-O3 -mips3 -mabi=32 -mtune=r4400 -pipe -fomit-frame-pointer" CXXFLAGS="${CFLAGS}" make[1]: Entering directory `/usr/obj/portage/kbd-1.06-r1/work/kbd-1.06/src' gcc -c -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -DDATADIR=\"/usr/share\" dumpkeys.c gcc -c -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -DDATADIR=\"/usr/share\" ksyms.c gcc -c -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -DDATADIR=\"/usr/share\" xmalloc.c gcc -c -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -DDATADIR=\"/usr/share\" getfd.c getfd.c: In function `getfd': getfd.c:64: warning: implicit declaration of function `exit' gcc -s dumpkeys.o ksyms.o xmalloc.o getfd.o -o dumpkeys -------------------- And another snippet: gcc -c -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -DDATADIR=\"/usr/share\" fgconsole.c fgconsole.c: In function `main': fgconsole.c:22: warning: implicit declaration of function `exit' gcc -s fgconsole.o getfd.o -o fgconsole gcc -c -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -DDATADIR=\"/usr/share\" getkeycodes.c gcc -s getkeycodes.o getfd.o -o getkeycodes gcc -c -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -DDATADIR=\"/usr/share\" setkeycodes.c -------------------- And so on. I'm told this is due to a bug in the ebuild itself, however I have no idea how to go about fixing it.
*** Bug 21322 has been marked as a duplicate of this bug. ***
Created attachment 12189 [details, diff] Patch to fix CFLAGS in makefile This patch fixes the CFLAGS in the src/Makefile.in so that the user can use their own CFLAGS.
Thanks zul, quick test on my sparc64 shows it does include the flags now. Closing.