mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-13 03:30:42 +02:00
Revert "build: remove check for __attribute__((visibility.."
This reverts commit 37c9abdc43
(#30590)
This commit is contained in:
parent
a0e4d76712
commit
99a645c28c
17
configure.ac
17
configure.ac
@ -934,6 +934,23 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
|||||||
[ AC_MSG_RESULT([no])]
|
[ AC_MSG_RESULT([no])]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
AC_MSG_CHECKING([for default visibility attribute])
|
||||||
|
AC_COMPILE_IFELSE([AC_LANG_SOURCE([
|
||||||
|
int foo(void) __attribute__((visibility("default")));
|
||||||
|
int main(){}
|
||||||
|
])],
|
||||||
|
[
|
||||||
|
AC_DEFINE([HAVE_DEFAULT_VISIBILITY_ATTRIBUTE], [1], [Define if the visibility attribute is supported.])
|
||||||
|
AC_MSG_RESULT([yes])
|
||||||
|
],
|
||||||
|
[
|
||||||
|
AC_MSG_RESULT([no])
|
||||||
|
if test "$use_reduce_exports" = "yes"; then
|
||||||
|
AC_MSG_ERROR([Cannot find a working visibility attribute. Use --disable-reduce-exports.])
|
||||||
|
fi
|
||||||
|
]
|
||||||
|
)
|
||||||
|
|
||||||
AC_MSG_CHECKING([for dllexport attribute])
|
AC_MSG_CHECKING([for dllexport attribute])
|
||||||
AC_COMPILE_IFELSE([AC_LANG_SOURCE([
|
AC_COMPILE_IFELSE([AC_LANG_SOURCE([
|
||||||
__declspec(dllexport) int foo(void);
|
__declspec(dllexport) int foo(void);
|
||||||
|
Loading…
Reference in New Issue
Block a user