wget-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

wget2 | build: Fix the build with slibtool (!498)


From: orbea (@orbea)
Subject: wget2 | build: Fix the build with slibtool (!498)
Date: Tue, 28 Sep 2021 18:22:29 +0000


orbea created a merge request: 
https://gitlab.com/gnuwget/wget2/-/merge_requests/498

Project:Branches: orbea/wget2:libtool to gnuwget/wget2:master
Author:   orbea




When building wget2 with slibtool (https://dev.midipix.org/cross/slibtool) it 
will fail to build for two reasons.

1. wget2 uses `-no-whole-archive` when GNU libtool and slibtool do not support 
this, but then works around this for the former by patching it directly in the 
build system. The more portable way is to pass it directly to the linker with 
`-Wl,--no-whole-archive`. The second commit removes `contrib/libtool.patch` 
which will no longer be needed with this change.
2. The build fails in two places with undefined references to pthread which GNU 
libtool silently hides which commonly occurs in many projects that use libtool. 
This can be fixed by using the `ax_pthread.m4` file from autoconf-archive.

### Approver's checklist:

* [ ] The author has submitted the FSF Copyright Assignment and is listed in 
AUTHORS
* [ ] There is a test suite reasonably covering new functionality or 
modifications
* [ ] Function naming, parameters, return values, types, etc., are consistent 
with existing code
* [ ] This feature/change has adequate documentation added (if appropriate)
* [ ] No obvious mistakes / misspelling in the code

-- 
Reply to this email directly or view it on GitLab: 
https://gitlab.com/gnuwget/wget2/-/merge_requests/498
You're receiving this email because of your account on gitlab.com.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]