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

Bug 528290

Summary: sys-devel/autoconf: honor PKG_CHECK_MODULES C/LDFLAGS
Product: Gentoo Linux Reporter: tokiclover <tokiclover>
Component: [OLD] Core systemAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description tokiclover 2014-11-05 10:19:38 UTC
I have encountered an issue related to honoring PKG_CHECK_MODULES related C/LDFLAGS.

For example writing down `PKG_CHECK_MODULES([CORE],[fontconfig x11 xext])' won't generate CORE_C/LDFLAGS accordingly. See bug #528254 which should be marked as a duplicate of this one instead.

I've encountered this bug on other packages but I was too busy to debug it.

This actually goes down to a broken `configure' script which have:
---
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CORE" >&5
$as_echo_n "checking for CORE... " >&6; }

if test -n "$CORE_CFLAGS"; then
(...)
if test -n "$CORE_LIBS"; then
(...)
fi
---
instead of
---
(...)
if test -z "$CORE_CFLAGS"; then
(...)
if test -z "$CORE_LIBS"; then
(...)
fi
---
which would honor C/LDFLAGS by executing the related lines.

Lets locate the origin of those lines to be able to fix the issue.

Reproducible: Always
Comment 1 tokiclover 2014-11-05 12:25:01 UTC
So this is related to the underlinking issue (see bug #372079).
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2014-11-05 13:31:21 UTC

*** This bug has been marked as a duplicate of bug 528254 ***