Explorar o código

fix build on Linux platforms

Christoph Schug %!s(int64=18) %!d(string=hai) anos
pai
achega
e06445b112
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      mutt/mutt.spec

+ 4 - 1
mutt/mutt.spec

@@ -38,7 +38,7 @@ Class:        BASE
 Group:        Mail
 License:      BSD
 Version:      %{V_mutt}
-Release:      20070805
+Release:      20070905
 
 #   build options
 %option       with_pop       no
@@ -178,8 +178,10 @@ AutoReqProv:  no
 %build
     #   configure for particular platform
     options=''
+    libs=''
     case "%{l_platform -t}" in
         *-freebsd* ) options="--enable-flock --disable-fcntl" ;;
+        *-linux*   ) libs="-ldl" ;;
     esac
     CC="%{l_cc}" \
     CFLAGS="%{l_cflags -O}" \
@@ -189,6 +191,7 @@ AutoReqProv:  no
     CPPFLAGS="%{l_cppflags libidn .}" \
 %endif
     LDFLAGS="-Limap %{l_ldflags}" \
+    LIBS="$libs" \
     INSTALL="%{l_shtool} install%{l_nil} -c" \
     ./configure \
         --prefix=%{l_prefix} \