Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 117103

Summary: gcc 3.4.x on Gentoo/OpenBSD
Product: Gentoo/Alt Reporter: Karol Pasternak (RETIRED) <reb>
Component: OtherAssignee: Gentoo/BSD Team <bsd+disabled>
Status: RESOLVED FIXED    
Severity: normal CC: toolchain
Priority: High    
Version: unspecified   
Hardware: All   
OS: Other   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: patch for gcc on g/obsd

Description Karol Pasternak (RETIRED) gentoo-dev 2005-12-29 09:40:43 UTC
Hi,

On Gentoo/OpenBSD gcc doesn't compile with user-specifed CFLAGS.
CFLAGS must be set to "-O2 -g" only. Also patch is needed.

To toolchain@g.o:
Could you add to toolchain.eclass in gcc_do_filter_flags() something like that (before GCJFLAGS=${GCJFLAGS:-${CFLAGS}} ):

case ${CHOST} in
*-openbsd*)
CFLAGS="-O2 -g" ;;
*) ;;

Thanks
Comment 1 Karol Pasternak (RETIRED) gentoo-dev 2005-12-29 09:42:06 UTC
Created attachment 75741 [details, diff]
patch for gcc on g/obsd

Please for add this to gcc-3.4.x-patches
Comment 2 SpanKY gentoo-dev 2005-12-29 15:03:58 UTC
i dont really like that kind of CFLAG munging at all
Comment 3 SpanKY gentoo-dev 2006-02-15 20:02:30 UTC
added to gcc-3.4.5-r1