From 43dbe8db89b4705081a888d4b824fdc041c08ba8 Mon Sep 17 00:00:00 2001 From: jmc Date: Sun, 25 May 2003 21:03:25 +0000 Subject: Make sure the dynamic code generation actually compiles explicitly as PIC code so it'll work on archs like powerpc which require it. --- chat/ircservices/Makefile | 4 +-- chat/ircservices/patches/patch-aa | 63 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+), 2 deletions(-) create mode 100644 chat/ircservices/patches/patch-aa (limited to 'chat/ircservices') diff --git a/chat/ircservices/Makefile b/chat/ircservices/Makefile index 8ad30a5ae37..d5fd6879a0c 100644 --- a/chat/ircservices/Makefile +++ b/chat/ircservices/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.3 2003/04/16 18:12:12 jmc Exp $ +# $NetBSD: Makefile,v 1.4 2003/05/25 21:03:25 jmc Exp $ # DISTNAME= ircservices-5.0.16 -PKGREVISION= 1 +PKGREVISION= 2 CATEGORIES= chat MASTER_SITES= ftp://ftp.esper.net/ircservices/ \ ftp://ftp.esper.net/ircservices/old/ diff --git a/chat/ircservices/patches/patch-aa b/chat/ircservices/patches/patch-aa new file mode 100644 index 00000000000..11d32eb69ed --- /dev/null +++ b/chat/ircservices/patches/patch-aa @@ -0,0 +1,63 @@ +$NetBSD: patch-aa,v 1.1 2003/05/25 21:03:26 jmc Exp $ + +--- configure.orig Thu Apr 10 01:35:14 2003 ++++ configure Sun May 25 20:58:51 2003 +@@ -1012,10 +1012,10 @@ + cat >tmp/test-lib.c < $a" +@@ -1106,7 +1106,7 @@ + } + int quux(int x) {return x;} + EOT +- if run $CC $CC_FLAGS $CC_DYN_LFLAGS $CC_LIBS $CC_DYN_LIBS tmp/test-dynamic2.c tmp/test.so -o tmp/test ++ if run $CC -fPIC $CC_FLAGS $CC_DYN_LFLAGS $CC_LIBS $CC_DYN_LIBS tmp/test-dynamic2.c tmp/test.so -o tmp/test + then + a=`tmp/test` + log "underscore test: tmp/test => $a" +@@ -1130,6 +1130,7 @@ + if [ "$OK" ] ; then + echo "yes." + STATIC_MODULES=0 ++ CC_FLAGS="-fPIC $CC_FLAGS" + else + log "static modules selected" + echo "no." -- cgit v1.2.3