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                                    
======================================================================

_______________________________________________
redland-dev mailing list
[email protected]
http://lists.librdf.org/mailman/listinfo/redland-dev

Reply via email to