Fix the llvm bootstrap


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20170 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/System/ltdl.c b/lib/System/ltdl.c
index a0e07f8..60bbec1 100644
--- a/lib/System/ltdl.c
+++ b/lib/System/ltdl.c
@@ -1165,7 +1165,7 @@
 
 /* --- SHL_LOAD() INTERFACE LOADER --- */
 
-#if HAVE_SHL_LOAD
+#if HAVE_SHL_LOAD && !defined(__llvm__)
 
 /* dynamic linking with shl_load (HP-UX) (comments from gmodule) */
 
@@ -2214,7 +2214,7 @@
 #if HAVE_LIBDL
       errors += lt_dlloader_add (lt_dlloader_next (0), &sys_dl, "dlopen");
 #endif
-#if HAVE_SHL_LOAD
+#if HAVE_SHL_LOAD && !defined(__llvm__)
       errors += lt_dlloader_add (lt_dlloader_next (0), &sys_shl, "dlopen");
 #endif
 #ifdef __WINDOWS__