diff options
author | Mike Frysinger <vapier@gentoo.org> | 2023-12-06 20:28:40 -0700 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2023-12-06 20:56:29 -0700 |
commit | 708aee5ec64bea2c84449f63f3cdaa6d2b0b5892 (patch) | |
tree | 8a3aa9b462bb7456e07ec885f121e77cf8793cc7 /sim/m4 | |
parent | d7befe04faa4b9f468bf77b6db3d5cd42b0b8fb5 (diff) | |
download | gdb-708aee5ec64bea2c84449f63f3cdaa6d2b0b5892.zip gdb-708aee5ec64bea2c84449f63f3cdaa6d2b0b5892.tar.gz gdb-708aee5ec64bea2c84449f63f3cdaa6d2b0b5892.tar.bz2 |
sim: support dlopen in -lc
Stop assuming that dlopen is only available via -ldl. Newer versions
of glibc have merged it into -lc which broke this configure test.
Diffstat (limited to 'sim/m4')
-rw-r--r-- | sim/m4/sim_ac_platform.m4 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/m4/sim_ac_platform.m4 b/sim/m4/sim_ac_platform.m4 index 7331ef3..f453217 100644 --- a/sim/m4/sim_ac_platform.m4 +++ b/sim/m4/sim_ac_platform.m4 @@ -151,7 +151,7 @@ AC_SEARCH_LIBS([fabs], [m]) AC_SEARCH_LIBS([log2], [m]) AC_SEARCH_LIBS([dlopen], [dl]) -if test "${ac_cv_lib_dl_dlopen}" = "yes"; then +if test "${ac_cv_search_dlopen}" = "none required" || test "${ac_cv_lib_dl_dlopen}" = "yes"; then PKG_CHECK_MODULES(SDL, sdl2, [dnl SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=2" ], [ |