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>
#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