From: Jorge Pereira Date: Wed, 12 Oct 2022 12:50:00 +0000 (-0300) Subject: Suppress MacOS ld warning from native compilation (#4766) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe63d63a30bc8e58cfa24201bfe9e37b36a4d56b;p=thirdparty%2Ffreeradius-server.git Suppress MacOS ld warning from native compilation (#4766) Add the option '-Wl,-w' as suggested in https://issues.guix.gnu.org/issue/57849 --- diff --git a/scripts/jlibtool.c b/scripts/jlibtool.c index 6b93a1e1375..5629bdeff8f 100644 --- a/scripts/jlibtool.c +++ b/scripts/jlibtool.c @@ -185,7 +185,7 @@ static const target_t target_macos = { .shared_opts = "-dynamiclib", .module_opts = "-bundle -dynamic", .dynamic_link_opts = "-bind_at_load", - .dynamic_link_opts_undefined = "-undefined dynamic_lookup", + .dynamic_link_opts_undefined = "-Wl,-w -undefined dynamic_lookup", .dynamic_link_version_func = darwin_dynamic_link_function, .dynamic_install_name = "-install_name", .dynamic_link_no_install = "-dylib_file",