[gnutls-devel] GnuTLS | configure: Remove -no_weak_links from LDFLAGS after detecting function availability (!1376)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Fri Jan 8 17:54:52 CET 2021

Daiki Ueno commented on a discussion on configure.ac: https://gitlab.com/gnutls/gnutls/-/merge_requests/1376#note_481238028

>      dnl intended minimum runtime version.
>      LDFLAGS="$LDFLAGS -Wl,-no_weak_imports"
>      AC_MSG_CHECKING([whether the linker supports -Wl,-no_weak_imports])
> -    AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <sys/select.h>], [fd_set rfds; FD_ZERO(&rfds); FD_SET(0, &rfds);])],

Indeed, that makes sense. I was concerned that `-Wl,-no_weak_links` is removed even if the user manually sets it on the configure command line, but maybe I'm too picky :-)

Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1376#note_481238028
You're receiving this email because of your account on gitlab.com.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20210108/476fe38e/attachment-0001.html>

More information about the Gnutls-devel mailing list