From: Iain Sandoe Date: Fri, 21 Mar 2025 15:31:21 +0000 (+0000) Subject: Darwin: We do not need libdl, it is provided in libSystem. X-Git-Tag: basepoints/gcc-16~883 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f9e72dd364915dafc03202cc6ad9ddffaee93f3;p=thirdparty%2Fgcc.git Darwin: We do not need libdl, it is provided in libSystem. Darwin provides this support as part of libSystem which is always linked with user-space DSOs (including exes). gcc/ChangeLog: * config/darwin.h (DL_LIBRARY): New. Signed-off-by: Iain Sandoe --- diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h index 3d2ced5fca3..8c164fd4b75 100644 --- a/gcc/config/darwin.h +++ b/gcc/config/darwin.h @@ -45,9 +45,12 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see #define OBJECT_FORMAT_MACHO 1 -/* Suppress g++ attempt to link in the math library automatically. */ +/* Suppress language-specific specs attempt to link in libm automatically. */ #define MATH_LIBRARY "" +/* Likewise libdl. */ +#define DL_LIBRARY "" + /* We have atexit. */ #define HAVE_ATEXIT