From 59a1215bd265fbc48b1196e88f1765cf4830c6e7 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Wed, 17 Jan 2018 11:45:56 +0300 Subject: Do not declare dl_iterate_phdr as weak for DragonFly * dyn_load.c [!USE_PROC_FOR_LIBRARIES && __DragonFly__] (HAVE_DL_ITERATE_PHDR, DL_ITERATE_PHDR_STRONG): Define. --- dyn_load.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dyn_load.c') diff --git a/dyn_load.c b/dyn_load.c index d036364e..0271d71c 100644 --- a/dyn_load.c +++ b/dyn_load.c @@ -422,7 +422,7 @@ GC_INNER GC_bool GC_register_main_static_data(void) # endif #endif /* __GLIBC__ >= 2 || PLATFORM_ANDROID */ -#if (defined(FREEBSD) && __FreeBSD__ >= 7) +#if (defined(FREEBSD) && __FreeBSD__ >= 7) || defined(__DragonFly__) /* On the FreeBSD system, any target system at major version 7 shall */ /* have dl_iterate_phdr; therefore, we need not make it weak as below. */ # ifndef HAVE_DL_ITERATE_PHDR -- cgit v1.2.1