diff options
author | Iain Sandoe <iain@sandoe.co.uk> | 2025-03-21 15:31:21 +0000 |
---|---|---|
committer | Iain Sandoe <iain@sandoe.co.uk> | 2025-03-22 11:11:04 +0000 |
commit | 4f9e72dd364915dafc03202cc6ad9ddffaee93f3 (patch) | |
tree | a3ca20105a1282ffe579032707ce45b9a2df50c0 | |
parent | a6cb7e917b1f7aa1c3ab44a62bcb7f5d81fc79e4 (diff) | |
download | gcc-4f9e72dd364915dafc03202cc6ad9ddffaee93f3.zip gcc-4f9e72dd364915dafc03202cc6ad9ddffaee93f3.tar.gz gcc-4f9e72dd364915dafc03202cc6ad9ddffaee93f3.tar.bz2 |
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 <iain@sandoe.co.uk>
-rw-r--r-- | gcc/config/darwin.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h index 3d2ced5..8c164fd 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 |