From 1f56bf885a9989087125f3b2b68af583ff314e0c Mon Sep 17 00:00:00 2001 From: Michael van Elst Date: Mon, 14 Jul 2003 09:43:04 +0000 Subject: [PATCH] fix building --- gnutls/gnutls.spec | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/gnutls/gnutls.spec b/gnutls/gnutls.spec index fcb0743840..3d1ee429e3 100644 --- a/gnutls/gnutls.spec +++ b/gnutls/gnutls.spec @@ -33,7 +33,7 @@ Distribution: OpenPKG [EVAL] Group: Cryptography License: GPL Version: 0.8.9 -Release: 20030710 +Release: 20030714 # list of sources Source0: ftp://gnutls.hellug.gr/pub/gnutls/gnutls-%{version}.tar.gz @@ -60,12 +60,17 @@ AutoReqProv: no %patch -p0 %build + case "%{l_target}" in + *-solaris*) libs="-lsocket -lnsl " ;; + *) libs="" ;; + esac + echo 'ac_cv_type_ptrdiff_t=yes' >config.cache CC="%{l_cc}" \ CFLAGS="%{l_cflags -O} %{l_cppflags lzo}" \ CPPFLAGS="%{l_cppflags} %{l_cppflags lzo}" \ LDFLAGS="%{l_ldflags}" \ - LIBS="-lgetopt" \ + LIBS="$libs-lgetopt" \ LIBOPENCDK_CONFIG=no \ ./configure \ --cache-file=config.cache \