gh-127604: ensure -ldl is passed only once to the linker (#133071)

This commit is contained in:
Bénédikt Tran 2025-04-28 11:55:02 +02:00 committed by GitHub
parent 6677c2c165
commit af3f6fcb7e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 9 additions and 4 deletions

View file

@ -33,9 +33,9 @@
#ifdef HAVE_LINK_H
# include <link.h> // struct DL_info
#endif
# if defined(__APPLE__) && defined(HAVE_BACKTRACE) && defined(HAVE_BACKTRACE_SYMBOLS) && defined(HAVE_DLADDR)
# if defined(__APPLE__) && defined(HAVE_BACKTRACE) && defined(HAVE_DLADDR)
# define CAN_C_BACKTRACE
# elif defined(HAVE_BACKTRACE) && defined(HAVE_BACKTRACE_SYMBOLS) && defined(HAVE_DLADDR1)
# elif defined(HAVE_BACKTRACE) && defined(HAVE_DLADDR1)
# define CAN_C_BACKTRACE
# endif
#endif