As per $summary, form build.log: gcc -Wp,-MD,/tmp/portage/net-misc/dahdi-2.4.1-r1/work/dahdi-linux-2.4.1/drivers/dahdi/.dahdi_echocan_sec.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/include -I/usr/src/linux-2.6.39-gentoo-r3/arch/x86/include -Iinclude -include include/generated/autoconf.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -m64 -march=core2 -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wframe-larger-than=2048 -fno-stack-protector -Wno-unused-but-set-variable -fomit-frame-pointer -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DHAVE_HRTIMER_ACCESSORS=1 -DMODULE -I/tmp/portage/net-misc/dahdi-2.4.1-r1/work/dahdi-linux-2.4.1/include -I/tmp/portage/net-misc/dahdi-2.4.1-r1/work/dahdi-linux-2.4.1/drivers/dahdi -DHAVE_WAIT_FOR_COMPLETION_TIMEOUT=1 -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(dahdi_echocan_sec)" -D"KBUILD_MODNAME=KBUILD_STR(dahdi_echocan_sec)" -c -o /tmp/portage/net-misc/dahdi-2.4.1-r1/work/dahdi-linux-2.4.1/drivers/dahdi/dahdi_echocan_sec.o /tmp/portage/net-misc/dahdi-2.4.1-r1/work/dahdi-linux-2.4.1/drivers/dahdi/dahdi_echocan_sec.c I think that -Os and other minor flags should be dropped like mno-* Anyway I don't know why it compiles with core2 if I have native: CFLAGS="-march=native -O2 -g0"
PLease fix also directly calling of gcc and ld
This package uses kmod, and as such I have no makefiles to patch to install CFLAGS respect. However, I have fixed the direct calls of CC & LD for you. Hope that will do for now. +*dahdi-2.5.0-r1 (02 Sep 2011) + + 02 Sep 2011; Tony Vroon <chainsaw@gentoo.org> +dahdi-2.5.0-r1.ebuild: + Add support for junghanns.net BRI adapters, ebuild work by Felix Tiede closes + bug #354321. Stop calling CC/LD directly, closes bug #376705 by Agostino + "ago" Sarubbo. Drop unnecessary patch from set, as per Erik Wallin in bug + #381335.