Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 21320 - kbd-1.06-r1 doesn't apply portage CFLAGS
Summary: kbd-1.06-r1 doesn't apply portage CFLAGS
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
: 21322 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-05-20 02:14 UTC by Joshua Kinard
Modified: 2003-05-20 19:08 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to fix CFLAGS in makefile (cflags-patch,538 bytes, patch)
2003-05-20 07:07 UTC, Chuck Short (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joshua Kinard gentoo-dev 2003-05-20 02:14:16 UTC
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.
Comment 1 Joshua Kinard gentoo-dev 2003-05-20 02:51:13 UTC
*** Bug 21322 has been marked as a duplicate of this bug. ***
Comment 2 Chuck Short (RETIRED) gentoo-dev 2003-05-20 07:07:48 UTC
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.
Comment 3 Joshua Kinard gentoo-dev 2003-05-20 19:08:39 UTC
Thanks zul, quick test on my sparc64 shows it does include the flags now.  Closing.