mirror of
https://git.freebsd.org/ports.git
synced 2025-05-05 16:07:38 -04:00
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.
21 lines
496 B
Text
21 lines
496 B
Text
--- 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
|
|
])
|