Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf6a117a

Browse files
committed
Rework addition of -ldl.
1 parent297f242 commitf6a117a

File tree

2 files changed

+130
-126
lines changed

2 files changed

+130
-126
lines changed

‎configure

Lines changed: 113 additions & 112 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎configure.ac

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2985,15 +2985,6 @@ AC_CHECK_HEADERS([ \
29852985
AC_HEADER_DIRENT
29862986
AC_HEADER_MAJOR
29872987

2988-
# for faulthandler
2989-
AC_CHECK_HEADERS([execinfo.h link.h dlfcn.h],[
2990-
AC_CHECK_FUNCS([backtrace dladdr1],[
2991-
# dladdr1 requires -ldl
2992-
ac_cv_require_ldl=yes
2993-
])
2994-
])
2995-
AS_VAR_IF([ac_cv_require_ldl],[yes],[AS_VAR_APPEND([LDFLAGS],[" -ldl"])])
2996-
29972988
# bluetooth/bluetooth.h has been known to not compile with -std=c99.
29982989
# http://permalink.gmane.org/gmane.linux.bluez.kernel/22294
29992990
SAVE_CFLAGS=$CFLAGS
@@ -3715,6 +3706,22 @@ AC_CHECK_LIB([dl], [dlopen]) # Dynamic linking for SunOS/Solaris and SYSV
37153706
AC_CHECK_LIB([dld],[shl_load])# Dynamic linking for HP-UX
37163707

37173708

3709+
dnl for faulthandler
3710+
AC_CHECK_HEADERS([execinfo.h link.h dlfcn.h],[
3711+
AC_CHECK_FUNCS([backtrace dladdr1],[
3712+
# dladdr1 requires -ldl
3713+
ac_cv_require_ldl=yes
3714+
])
3715+
])
3716+
3717+
dnl only add -ldl to LDFLAGS if it isn't already part of LIBS (GH-133081)
3718+
AS_VAR_IF([ac_cv_require_ldl],[yes],[
3719+
AS_VAR_IF([ac_cv_lib_dl_dlopen],[yes],[],[
3720+
AS_VAR_APPEND([LDFLAGS],[" -ldl"])
3721+
])
3722+
])
3723+
3724+
37183725
dnl check for uuid dependencies
37193726
AH_TEMPLATE([HAVE_UUID_H],[Define to 1 if you have the <uuid.h> header file.])
37203727
AH_TEMPLATE([HAVE_UUID_UUID_H],[Define to 1 if you have the <uuid/uuid.h> header file.])
@@ -4045,11 +4052,7 @@ AS_VAR_IF([have_libffi], [yes], [
40454052
AC_SUBST([MODULE__CTYPES_MALLOC_CLOSURE])
40464053
40474054
dnl HAVE_LIBDL: for dlopen, see gh-76828
4048-
AS_VAR_IF([ac_cv_lib_dl_dlopen],[yes],[
4049-
AS_VAR_IF([ac_cv_require_ldl],[yes],[],[
4050-
AS_VAR_APPEND([LIBFFI_LIBS],[" -ldl"])
4051-
])
4052-
])
4055+
AS_VAR_IF([ac_cv_lib_dl_dlopen],[yes],[AS_VAR_APPEND([LIBFFI_LIBS],[" -ldl"])])
40534056
40544057
WITH_SAVE_ENV([
40554058
CFLAGS="$CFLAGS $LIBFFI_CFLAGS"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp