[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: wget2 | build: Fix the build with slibtool (!498)
From: |
@rockdaboot |
Subject: |
Re: wget2 | build: Fix the build with slibtool (!498) |
Date: |
Mon, 03 Jan 2022 13:21:08 +0000 |
Tim Rühsen commented:
The commit `build: Use -Wl,--no-whole-archive` has no effect (all objects from
gnulib.a are still linked into the shared libraries). There is no way to tell
libtool *not* to wrap libgnu.a into `-Wl,--whole-archive` /
`-Wl,--no-whole-archive`, except patching libtool (I checked the libtool source
code to find this out).
There is a ugly work-around, adding
`-Wl,--no-whole-archive,../lib/.libs/libgnu.a` to `..._la_LDFLAGS`.
But I don't think this is a) portable and b) supported by slibtool (as `.libs/`
is private to libtool).
Any other ideas how to shrink the size of the shared libraries (it is roughly a
factor of 10 for the smaller libraries (1M -> 100k with debug symbols), so IMO
worth considering) ?
--
Reply to this email directly or view it on GitLab:
https://gitlab.com/gnuwget/wget2/-/merge_requests/498#note_799863215
You're receiving this email because of your account on gitlab.com.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: wget2 | build: Fix the build with slibtool (!498),
@rockdaboot <=