Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sysutils/nut-devel: Remove GCC requirement.
Remove the GCC requirement by adding -lpthread and removing the nullification of CFLAGS and LDFLAGS in the M4 script that verifies we have a working libltdl.
- Loading branch information
Showing
2 changed files
with
22 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- m4/nut_check_libltdl.m4.orig 2023-08-01 07:33:24.593954000 -0700 | ||
+++ m4/nut_check_libltdl.m4 2023-08-01 07:35:18.506094000 -0700 | ||
@@ -10,10 +10,7 @@ | ||
dnl No NUT_CHECK_PKGCONFIG here: (lib)ltdl.pc was not seen on any OS | ||
|
||
dnl save CFLAGS and LIBS | ||
- CFLAGS_ORIG="${CFLAGS}" | ||
- LIBS_ORIG="${LIBS}" | ||
LIBS="" | ||
- CFLAGS="" | ||
dnl For fallback below: | ||
myCFLAGS="" | ||
|
||
@@ -71,7 +68,5 @@ | ||
unset myCFLAGS | ||
|
||
dnl restore original CFLAGS and LIBS | ||
- CFLAGS="${CFLAGS_ORIG}" | ||
- LIBS="${LIBS_ORIG}" | ||
fi | ||
]) |