[redland-dev] [Redland librdf RDF API 0000544]: redland.pc includes users ldflags
Mantis Bug Tracker
mantis-bug-sender at librdf.org
Thu May 2 10:50:06 EDT 2013
The following issue has been SUBMITTED.
======================================================================
http://bugs.librdf.org/mantis/view.php?id=544
======================================================================
Reported By: hasufell
Assigned To:
======================================================================
Project: Redland librdf RDF API
Issue ID: 544
Category: configuration
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2013-05-02 14:49
Last Modified: 2013-05-02 14:49
======================================================================
Summary: redland.pc includes users ldflags
Description:
pkg-config files are generally not for normal LDFLAGS.
LDFLAGS variable in autotools is commonly used by users to add optimization
flags and other stuff which are not necessary to successfully build.
However, the "Libs.private" variable in redland.pc will add those user ldflags
as needed libs which is not true. Those entries should only contain libs, needed
-L flags and any other linker flags that are ALWAYS needed to successfully
build.
Therefore, the environment LDFLAGS variable should not be added there at all.
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
actual result:
Libs.private: -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -ldl -Wl,-O1
-Wl,--as-needed -Wl,--hash-style=gnu -ldb-4.8
expected result:
Libs.private: -ldl -ldb-4.8
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2013-05-02 14:49 hasufell New Issue
======================================================================
More information about the redland-dev
mailing list