[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 16:34:27 CET 2021



Merge request https://gitlab.com/gnutls/gnutls/-/merge_requests/1376 was reviewed by Daiki Ueno

--
  
Daiki Ueno started a new discussion on configure.ac: https://gitlab.com/gnutls/gnutls/-/merge_requests/1376#note_481182075

> +  dnl weakly linked function __darwin_check_fd_set_overflow. We only
> +  dnl need it above to make sure that we don't detect functions that
> +  dnl can are linked weakly (and can end up null at runtime) unless

typo: "can are"

--
  
Daiki Ueno started a new discussion on configure.ac: https://gitlab.com/gnutls/gnutls/-/merge_requests/1376#note_481182080

>      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);])],
> +    AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])],

Can we then just save the original LDFLAGS (without `-Wl,-no_weak_imports` added here) and restore it in your change below?


-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1376
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/5cc87c25/attachment.html>


More information about the Gnutls-devel mailing list