Index: ratbox.spec
===================================================================
RCS file: /v/openpkg/cvs/openpkg-src/ratbox/ratbox.spec,v
retrieving revision 1.12
diff -u -r1.12 ratbox.spec
--- ratbox.spec 3 May 2005 09:46:04 -0000       1.12
+++ ratbox.spec 8 May 2005 11:46:07 -0000
@@ -81,6 +81,10 @@
     %patch -p0
 
 %build
+    libs=
+    case "%{l_platform -t}" in
+        *-sunos* ) libs="$libs -lsocket -lnsl" ;;
+    esac
     #   build IRC server
     ( cd ircd-ratbox-%{V_server}
       %{l_shtool} subst \
@@ -91,6 +95,7 @@
       CC="%{l_cc}" \
       CFLAGS="%{l_cflags -O}" \
       CPPFLAGS="%{l_cppflags}" \
+      LIBS="$libs" \
       LDFLAGS="%{l_ldflags}" \
       ./configure \
           --prefix=%{l_prefix} \
@@ -118,6 +123,7 @@
       CC="%{l_cc}" \
       CFLAGS="%{l_cflags -O}" \
       CPPFLAGS="%{l_cppflags}" \
+      LIBS="$libs" \
       LDFLAGS="%{l_ldflags}" \
       ./configure \
           --prefix=%{l_prefix} \
-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
  >> Im prämotorischen Cortex kann jeder ein Held sein. (bdw) <<
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
Developer Communication List                   openpkg-dev@openpkg.org

Reply via email to