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

Bug 379533

Summary: net-misc/curl-7.21.7-r2 does not respect CFLAGS
Product: Gentoo Linux Reporter: Martin von Gagern <Martin.vGagern>
Component: [OLD] LibraryAssignee: Christoph Mende (RETIRED) <angelos>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Proposed ebuild modification

Description Martin von Gagern 2011-08-17 08:21:08 UTC
net-misc/curl-7.21.7-r2 does not respect all aspects of the CFLAGS setting from make.conf. In particular, debug flags like -ggdb get stripped when using gcc, and will be replaced with -g0, thereby disabling debug symbol generation. The ebuild does apply a patch called curl-respect-cflags-2.patch, but that patch apparently only applies to the ibm c compiler. There is also an older curl-respect-cflags.patch, but that isn't applied at all any more.
Comment 1 Martin von Gagern 2011-08-17 08:22:13 UTC
Created attachment 283645 [details, diff]
Proposed ebuild modification

This replaces the patches with a sed script doing the same in a single line.
Comment 2 Martin von Gagern 2011-08-21 12:10:26 UTC
As an alternative, one could remove the calls to CURL_SET_COMPILER_DEBUG_OPTS and CURL_SET_COMPILER_OPTIMIZE_OPTS from configure.ac using a patch.
Comment 3 Christoph Mende (RETIRED) gentoo-dev 2011-08-21 15:40:18 UTC
thanks, fixed.
the -2 patch was needed because of syntax changes in that file, obviously I broke it