Subject: pkg/18867: www/ap-ssl link failure on Solaris
To: None <>
From: None <>
List: netbsd-bugs
Date: 10/31/2002 11:31:48
>Number:         18867
>Category:       pkg
>Synopsis:       www/ap-ssl link failure on Solaris
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 30 16:32:00 PST 2002
>Originator:     grant beattie
>Release:        -current pkgsrc
System: NetBSD mofo 1.6J NetBSD 1.6J (MOFO) #0: Fri Oct 25 00:54:35 EST 2002 grant@mofo:/data1/netbsd/current/src/sys/arch/i386/compile/MOFO i386
Architecture: i386
Machine: i386
www/ap-ssl fails to link on Solaris when built with gcc because it
cannot find libgcc.

cd www/ap-ssl; make

This works, but I'm not sure if this is the "right" fix.

Index: Makefile
RCS file: /cvsroot/pkgsrc/www/ap-ssl/Makefile,v
retrieving revision 1.63
diff -u -r1.63 Makefile
--- Makefile	2002/10/25 09:00:30	1.63
+++ Makefile	2002/10/31 00:28:21
@@ -98,6 +98,10 @@
 	cd ${WRKSRC}/pkg.sslcfg; ${INSTALL_DATA} README.PRM *.prm	\
+.if ${OPSYS} == "SunOS" && ${CC} == "gcc"
+. include "../../lang/gcc/"
 .include "../../security/openssl/"
 .include "../../www/apache/"