Bug 50762

Summary: gideon: pre-pend LDADD and LIBADD to _DEPENDENCIES in autoproject
Product: [Applications] kdevelop Reporter: Brian Gold <bgold>
Component: Build tools: AutomakeAssignee: KDevelop-Devel List <kdevelop-devel>
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Brian Gold 2002-11-15 15:40:11 UTC
Version:            (using KDE KDE 3.0.9)
Installed from:    Compiled From Sources
Compiler:          gcc version 2.95.4 20011002 (Debian prerelease) 
OS:          Linux

When building a project with subdirectories that target static libraries (either library or libtool library), the dependencies for the main project are not set properly.  Touching a source file in the library project will not cause the main project to be re-linked.

Potential Fix:
Currently, the _DEPENDENCIES line in Makefile.am of the library is set to blank unless the user specifies specific dependencies.  If the LDADD and LIBADD entries were pre-pended to this list, dependencies would work properly.

Current workarounds:
Add static libraries by hand to the _DEPENDENCIES line of the main project, or used shared libaries with libtool (don't pick -all-static).
Comment 1 Caleb Tennis 2003-03-20 18:29:05 UTC
Fixed in CVS by Roberto and Amilcar.