svn commit: trunk/uClibc: include

bernds at uclibc.org bernds at uclibc.org
Thu Nov 22 17:05:31 UTC 2007


Author: bernds
Date: 2007-11-22 09:05:28 -0800 (Thu, 22 Nov 2007)
New Revision: 20475

Log:
Certain configure scripts test for presence of dlfcn.h.  Don't install it
if !HAVE_SHARED.


Modified:
   trunk/uClibc/Makefile.in
   trunk/uClibc/include/link.h


Changeset:
Modified: trunk/uClibc/Makefile.in
===================================================================
--- trunk/uClibc/Makefile.in	2007-11-22 16:55:08 UTC (rev 20474)
+++ trunk/uClibc/Makefile.in	2007-11-22 17:05:28 UTC (rev 20475)
@@ -196,6 +196,11 @@
 	$(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

Modified: trunk/uClibc/include/link.h
===================================================================
--- trunk/uClibc/include/link.h	2007-11-22 16:55:08 UTC (rev 20474)
+++ trunk/uClibc/include/link.h	2007-11-22 17:05:28 UTC (rev 20475)
@@ -23,7 +23,9 @@
 
 #include <features.h>
 #include <elf.h>
+#ifndef __HAVE_NO_SHARED__
 #include <dlfcn.h>
+#endif
 #include <sys/types.h>
 #if defined _LIBC && defined __UCLIBC_HAS_THREADS_NATIVE__
 #include <tls.h>




More information about the uClibc-cvs mailing list