Skip to content

Commit d7333ec

Browse files
committed
Merge bitcoin#30590: build: Remove unused visibility checks
bbcba09 build: remove check for __declspec(dllexport) (fanquake) 37c9abd build: remove check for __attribute__((visibility.. (fanquake) Pull request description: These are unused (since libbitcoinconsensus / bitcoin#29648), and the current CMake port doesn't quite match behaviour, such that there's no real point in doing the check. So rather than port anything, just remove it. If these are needed again in future (i.e for kernel or similar), they can be revisted, and it might be the case that build-system level checks will not be wanted. ACKs for top commit: hebasto: ACK bbcba09. I've verified that neither `HAVE_DEFAULT_VISIBILITY_ATTRIBUTE` nor `HAVE_DLLEXPORT_ATTRIBUTE` are used or evaluated in the current codebase. TheCharlatan: ACK bbcba09 willcl-ark: ACK bbcba09 Tree-SHA512: 332f018c50a159d2cbfd2f9ce018538fa11cf06a94e27ed42146945b86645af5881095df39cadd2f775a8ae348ebfc949d54f7eb4b62264bf48119c9f9952c20
2 parents 870447f + bbcba09 commit d7333ec

File tree

2 files changed

+0
-32
lines changed

2 files changed

+0
-32
lines changed

build_msvc/bitcoin_config.h.in

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,6 @@
4949
*/
5050
#define HAVE_DECL_SETSID 0
5151

52-
/* Define if the dllexport attribute is supported. */
53-
#define HAVE_DLLEXPORT_ATTRIBUTE 1
54-
5552
/* Define to the address where bug reports for this package should be sent. */
5653
#define PACKAGE_BUGREPORT "https://github.com/bitcoin/bitcoin/issues"
5754

configure.ac

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -943,35 +943,6 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
943943
[ AC_MSG_RESULT([no])]
944944
)
945945

946-
AC_MSG_CHECKING([for default visibility attribute])
947-
AC_COMPILE_IFELSE([AC_LANG_SOURCE([
948-
int foo(void) __attribute__((visibility("default")));
949-
int main(){}
950-
])],
951-
[
952-
AC_DEFINE([HAVE_DEFAULT_VISIBILITY_ATTRIBUTE], [1], [Define if the visibility attribute is supported.])
953-
AC_MSG_RESULT([yes])
954-
],
955-
[
956-
AC_MSG_RESULT([no])
957-
if test "$use_reduce_exports" = "yes"; then
958-
AC_MSG_ERROR([Cannot find a working visibility attribute. Use --disable-reduce-exports.])
959-
fi
960-
]
961-
)
962-
963-
AC_MSG_CHECKING([for dllexport attribute])
964-
AC_COMPILE_IFELSE([AC_LANG_SOURCE([
965-
__declspec(dllexport) int foo(void);
966-
int main(){}
967-
])],
968-
[
969-
AC_DEFINE([HAVE_DLLEXPORT_ATTRIBUTE], [1], [Define if the dllexport attribute is supported.])
970-
AC_MSG_RESULT([yes])
971-
],
972-
[AC_MSG_RESULT([no])]
973-
)
974-
975946
dnl Check for different ways of gathering OS randomness
976947
AC_MSG_CHECKING([for Linux getrandom function])
977948
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[

0 commit comments

Comments
 (0)