]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Darwin: We do not need libdl, it is provided in libSystem.
authorIain Sandoe <iain@sandoe.co.uk>
Fri, 21 Mar 2025 15:31:21 +0000 (15:31 +0000)
committerIain Sandoe <iain@sandoe.co.uk>
Sat, 22 Mar 2025 11:11:04 +0000 (11:11 +0000)
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 <iain@sandoe.co.uk>
gcc/config/darwin.h

index 3d2ced5fca311e93b9a53bed8473ec95e6e4f0a3..8c164fd4b75b0850dd2e968f531b7fd066bf23f7 100644 (file)
@@ -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