Pārlūkot izejas kodu

correct libpqcxx configure logic when trying to link a test program with libpq

Michael Schloh von Bennewitz 21 gadi atpakaļ
vecāks
revīzija
bd7f69683c
2 mainītis faili ar 8 papildinājumiem un 2 dzēšanām
  1. 4 1
      postgresql/postgresql.spec
  2. 4 1
      postgresql8/postgresql8.spec

+ 4 - 1
postgresql/postgresql.spec

@@ -43,7 +43,7 @@ Class:        BASE
 Group:        Database
 License:      GPL
 Version:      %{V_postgresql}
-Release:      20050106
+Release:      20050110
 
 #   package options
 %option       with_server   yes
@@ -244,6 +244,9 @@ AutoReqProv:  no
       export CPPFLAGS="-I`pwd`/../src/include %{l_cppflags}"
       export LDFLAGS="%{l_ldflags}"
       export LIBS="-lssl -lcrypto -lcrypt"
+      case "%{l_platform -t}" in
+          *-sunos* ) LIBS="$LIBS -lsocket -lnsl" ;;
+      esac
       ./configure \
           --disable-shared
       %{l_make} %{l_mflags -O}

+ 4 - 1
postgresql8/postgresql8.spec

@@ -44,7 +44,7 @@ Class:        BASE
 Group:        Database
 License:      GPL
 Version:      %{V_postgresql}rc%{V_postgresql_rc}
-Release:      20050106
+Release:      20050110
 
 #   package options
 %option       with_server   yes
@@ -246,6 +246,9 @@ Provides:     postgresql = %{version}
       export CPPFLAGS="-I`pwd`/../src/include %{l_cppflags}"
       export LDFLAGS="%{l_ldflags}"
       export LIBS="-lssl -lcrypto -lcrypt"
+      case "%{l_platform -t}" in
+          *-sunos* ) LIBS="$LIBS -lsocket -lnsl" ;;
+      esac
       ./configure \
           --disable-shared
       %{l_make} %{l_mflags -O}