Parcourir la source

postgres client requires -lresolv for inet_aton()

Michael van Elst il y a 22 ans
Parent
commit
775505eb74
1 fichiers modifiés avec 11 ajouts et 4 suppressions
  1. 11 4
      bind/bind.spec

+ 11 - 4
bind/bind.spec

@@ -37,7 +37,7 @@ Distribution: OpenPKG [BASE]
 Group:        DNS
 License:      ISC
 Version:      %{V_bind}
-Release:      20030725
+Release:      20030728
 
 #   package options
 %option       with_dlz_mysql      no
@@ -121,14 +121,21 @@ Conflicts:    bind8, powerdns
     lf=""
     li=""
 %if "%{with_dlz_mysql}" == "yes"
-    cf=`mysql_config --cflags`
+    cf="$cf `mysql_config --cflags`"
+    lf="$lf `mysql_config --libs`"
+%endif
+%if "%{with_dlz_postgres}" == "yes"
+    case "%{l_target}" in
+        *-solaris*) li="$li -lresolv" ;;
+    esac
+%endif
     cf=`eval echo $cf`
-    lf=`mysql_config --libs`
     lf=`eval echo $lf`
-%endif
+    li=`eval echo $li`
     CC="%{l_cc}" \
     CFLAGS="%{l_cflags -O} $cf" \
     LDFLAGS="%{l_ldflags} $lf" \
+    LIBS="$li" \
     ./configure \
         --prefix=%{l_prefix} \
         --sysconfdir=%{l_prefix}/etc/bind \