From 640cb909d1233201c9f86baa3241722adaa09f57 Mon Sep 17 00:00:00 2001 From: Bernd Schmidt Date: Thu, 22 Nov 2007 17:05:28 +0000 Subject: Certain configure scripts test for presence of dlfcn.h. Don't install it if !HAVE_SHARED. --- Makefile.in | 5 +++++ include/link.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/Makefile.in b/Makefile.in index c0ca23d42..f65bc82df 100644 --- a/Makefile.in +++ b/Makefile.in @@ -196,6 +196,11 @@ ifneq ($(UCLIBC_HAS_THREADS),y) $(RM) $(PREFIX)$(DEVEL_PREFIX)include/semaphore.h $(RM) $(PREFIX)$(DEVEL_PREFIX)include/bits/*thread*.h endif +ifneq ($(HAVE_SHARED),y) + # Remove dlfcn header if we don't have shared libraries. + $(RM) $(PREFIX)$(DEVEL_PREFIX)include/dlfcn.h + $(RM) $(PREFIX)$(DEVEL_PREFIX)include/bits/dlfcn.h +endif ifeq ($(UCLIBC_HAS_THREADS_NATIVE),y) # Remove this as it is only used internally. $(RM) $(PREFIX)$(DEVEL_PREFIX)include/tls.h diff --git a/include/link.h b/include/link.h index b69dcda5b..78726852b 100644 --- a/include/link.h +++ b/include/link.h @@ -23,7 +23,9 @@ #include #include +#ifndef __HAVE_NO_SHARED__ #include +#endif #include #if defined _LIBC && defined __UCLIBC_HAS_THREADS_NATIVE__ #include -- cgit v1.2.3