Opened 16 years ago
Closed 8 years ago
#2065 closed enhancement (wontfix)
GDAL apps over-linking issue
Reported by: | frankie | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | ConfigBuild | Version: | unspecified |
Severity: | normal | Keywords: | |
Cc: | Mateusz Łoskot, Kyle Shannon |
Description
Recent dpkg-shlibs in Debian sid is able to auto-detect linking against unused libraries. See for instance:
http://buildd.debian.org/fetch.cgi?pkg=gdal;ver=1.4.4-1;arch=amd64;stamp=1196773651
and looks for "shouldn't be linked with" warnings. The primary result is having programs over-depending on other packages in order to have ld happy at loading time. The practice of linking against all Gdal dependency libraries should be discouraged iff the specific platform does not require so. Libtool supports subdependencies as stated in
http://www.gnu.org/software/libtool/manual.html#Inter_002dlibrary-dependencies
but the gdal build system relink against all other inter-dep libs again and again for all binaries or so. Without libtool inter-deps need to be manually tracked per app, I think.
Change History (8)
comment:1 by , 16 years ago
Cc: | added |
---|
comment:2 by , 16 years ago
Milestone: | → 1.6.0 |
---|
This is not something we dare fiddle with for 1.5, setting for 1.6.
comment:3 by , 16 years ago
It is also of interest seeing if -Wl,--as-needed could be a suitable trick without issues for C++ linkage. See http://www.gentoo.org/proj/en/qa/asneeded.xml for more information. Binutils folks could add that as default in the next future.
comment:4 by , 15 years ago
Milestone: | 1.6.1 → 1.7.0 |
---|
comment:5 by , 15 years ago
Cc: | added |
---|
comment:6 by , 9 years ago
Last commented 6 years ago. If this is still an issue then probably not a major one, or?
comment:8 by , 8 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
7 years old build problem must be outdated, closing.
Here is related ticket #2066