Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 117103 - gcc 3.4.x on Gentoo/OpenBSD
Summary: gcc 3.4.x on Gentoo/OpenBSD
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Other
: High normal (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-29 09:40 UTC by Karol Pasternak (RETIRED)
Modified: 2006-04-12 10:50 UTC (History)
1 user (show)

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


Attachments
patch for gcc on g/obsd (00_all_openbsd-3.4.4-conf.patch,9.32 KB, patch)
2005-12-29 09:42 UTC, Karol Pasternak (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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