Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 379533 - net-misc/curl-7.21.7-r2 does not respect CFLAGS
Summary: net-misc/curl-7.21.7-r2 does not respect CFLAGS
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Christoph Mende (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-17 08:21 UTC by Martin von Gagern
Modified: 2011-08-21 15:40 UTC (History)
0 users

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


Attachments
Proposed ebuild modification (gentoo379533a.patch,540 bytes, patch)
2011-08-17 08:22 UTC, Martin von Gagern
Details | Diff

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