Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 369945 - dev-libs/tre stores LDFLAGS in tre.pc
Summary: dev-libs/tre stores LDFLAGS in tre.pc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Shell Tools project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-03 20:01 UTC by Nathan Phillip Brink (binki) (RETIRED)
Modified: 2011-06-13 12:35 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2011-06-03 20:01:24 UTC
ohnobinki@binkidesky /tmp $ cat /usr/lib/pkgconfig/tre.pc 
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: TRE
Description: TRE regexp matching library
Version: 0.8.0
Libs: -L${libdir} -ltre -Wl,-O1 -Wl,--as-needed  
Cflags: -I${includedir} 
ohnobinki@binkidesky /tmp $ portageq envvar LDFLAGS
-Wl,-O1 -Wl,--as-needed

Thus when apps build against libtre and use TRE_LIBS=$(pkg-config --libs tre), they inherit the LDFLAGS which tre was built with. This prevents that tre-using-app's LDFLAGS from being controlled properly by the user.
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2011-06-13 12:35:33 UTC
+  13 Jun 2011; Justin Lecher <jlec@gentoo.org> +files/0.8.0-pkgcfg.patch,
+  tre-0.8.0.ebuild:
+  Do not include LDFLAGS in pkgconfig file, #369945
+