From ad635cfe96b1f2de591bc617c52ebe3782015acf Mon Sep 17 00:00:00 2001 From: Greg Lewis Date: Thu, 30 Jun 2005 22:20:39 +0000 Subject: [PATCH] . Add $FreeBSD$. . Fix the build on sparc64 by converting -fpic to -fPIC. Pointed out by: pointyhat (via kris) Approved by: Josh Paetzel (maintainer) --- net/socks5/files/patch-an | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/net/socks5/files/patch-an b/net/socks5/files/patch-an index 3dd5f8ec5824..4093713810fd 100644 --- a/net/socks5/files/patch-an +++ b/net/socks5/files/patch-an @@ -1,5 +1,7 @@ ---- configure Tue Aug 3 00:01:03 1999 -+++ configure.orig Sun Feb 20 21:28:20 2000 +$FreeBSD$ + +--- configure.orig Mon Aug 2 15:01:03 1999 ++++ configure Thu Jun 30 20:17:31 2005 @@ -3090,6 +3090,61 @@ fi done @@ -62,3 +64,21 @@ for ac_func in memset memcmp memmove strchr strrchr strdup strerror do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +@@ -4713,7 +4768,7 @@ + ;; + FreeBSD*|NetBSD*) + SHLIB_LFLAGS="-Bshareable" +- SHLIB_CFLAGS="-fpic" ++ SHLIB_CFLAGS="-fPIC" + PRELOADS="LD_PRELOAD" + ;; + SunOS*4.*) +@@ -4773,7 +4828,7 @@ + + + if test `uname -s` = "FreeBSD"; then +- SHLIB_CFLAGS="-fpic -r" ++ SHLIB_CFLAGS="-fPIC -r" + fi + + echo "$ac_t"""lflags: $SHLIB_LFLAGS cflags: $SHLIB_CFLAGS"" 1>&6