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

Bug 281490

Summary: [DEVMANUAL] section about compiling w/o buildsystem doesn't respect LDFLAGS and isn't as-needed conform
Product: [OLD] Docs on www.gentoo.org Reporter: Justin Lecher (RETIRED) <jlec>
Component: Other documentsAssignee: Gentoo Community Relations Team <comrel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 331933    

Description Justin Lecher (RETIRED) gentoo-dev 2009-08-14 19:23:38 UTC
http://devmanual.gentoo.org/ebuild-writing/functions/src_compile/no-build-system/index.html

says:

gcc $LIBS $CONFIG $CFLAGS -o gkrelltop2.so $OBJS || die

better would be

gcc ${LDFLAGS} $CONFIG $CFLAGS -o gkrelltop2.so $OBJS ${LIBS} || die
Comment 1 Petteri Räty (RETIRED) gentoo-dev 2009-08-15 08:59:37 UTC
Fixed. Thanks for reporting.