浏览代码

fix configure failing libtool check on Linux

Thomas Lotterer 22 年之前
父节点
当前提交
75766242a1
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. 6 2
      openldap/openldap.spec

+ 6 - 2
openldap/openldap.spec

@@ -33,7 +33,7 @@ Distribution: OpenPKG [BASE]
 Group:        Database
 License:      GPL
 Version:      2.1.23
-Release:      20031122
+Release:      20031123
 
 #   package options
 %option       with_fsl  yes
@@ -92,11 +92,15 @@ AutoReqProv:  no
 %else
     cf="%{l_cppflags}"
 %endif
+    LIBS=""
+    if [ -f /usr/lib/libdl.so -o -f /usr/lib/libdl.a ]; then
+        LIBS="$LIBS -ldl"
+    fi
     CC="%{l_cc}" \
     CFLAGS="%{l_cflags -O}" \
     CPPFLAGS="$cf" \
     LDFLAGS="%{l_ldflags} %{l_fsl_ldflags}" \
-    LIBS="%{l_fsl_libs}" \
+    LIBS="$LIBS %{l_fsl_libs}" \
     ./configure \
         --cache-file=./config.cache \
         --prefix=%{l_prefix} \