From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1521) id D31D43857346; Thu, 7 Dec 2023 03:57:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D31D43857346 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1701921425; bh=tXwe4JjAqdXdQ6ZYmBjxY4ylEp2LBEyNV7f1HMAlSlE=; h=From:To:Subject:Date:From; b=v1sDfcytMlZhbazBLlnZIqSXg1bu6m00dbjyZ1FC9E4rownX2f1kvr1A3Ahm9Tzpl cX1jlCNlKg2LzsoYxPOZj/rwgaWtcJCybVhwww82JJkhV5hJkmMFlqC37qSbWM6r5C RGThaVF7/HZ0dytxXtffI7MfWda0OOPQbnOj4pqo= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Michael Frysinger To: gdb-cvs@sourceware.org Subject: [binutils-gdb] sim: support dlopen in -lc X-Act-Checkin: binutils-gdb X-Git-Author: Mike Frysinger X-Git-Refname: refs/heads/master X-Git-Oldrev: d7befe04faa4b9f468bf77b6db3d5cd42b0b8fb5 X-Git-Newrev: 708aee5ec64bea2c84449f63f3cdaa6d2b0b5892 Message-Id: <20231207035705.D31D43857346@sourceware.org> Date: Thu, 7 Dec 2023 03:57:05 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D708aee5ec64b= ea2c84449f63f3cdaa6d2b0b5892 commit 708aee5ec64bea2c84449f63f3cdaa6d2b0b5892 Author: Mike Frysinger Date: Wed Dec 6 20:28:40 2023 -0700 sim: support dlopen in -lc =20 Stop assuming that dlopen is only available via -ldl. Newer versions of glibc have merged it into -lc which broke this configure test. Diff: --- sim/configure | 2 +- sim/m4/sim_ac_platform.m4 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sim/configure b/sim/configure index a7a914ad2c3..79a21e8be64 100755 --- a/sim/configure +++ b/sim/configure @@ -12915,7 +12915,7 @@ if test "$ac_res" !=3D no; then : =20 fi =20 -if test "${ac_cv_lib_dl_dlopen}" =3D "yes"; then +if test "${ac_cv_search_dlopen}" =3D "none required" || test "${ac_cv_lib_= dl_dlopen}" =3D "yes"; then =20 pkg_failed=3Dno { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl2" >&5 diff --git a/sim/m4/sim_ac_platform.m4 b/sim/m4/sim_ac_platform.m4 index 7331ef3a38c..f45321763fa 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]) =20 AC_SEARCH_LIBS([dlopen], [dl]) -if test "${ac_cv_lib_dl_dlopen}" =3D "yes"; then +if test "${ac_cv_search_dlopen}" =3D "none required" || test "${ac_cv_lib_= dl_dlopen}" =3D "yes"; then PKG_CHECK_MODULES(SDL, sdl2, [dnl SDL_CFLAGS=3D"${SDL_CFLAGS} -DHAVE_SDL=3D2" ], [