Subject: pkg/20735: lang/gcc3 should build shared libraries under Linux
To: None <gnats-bugs@gnats.netbsd.org>
From: None <reed@reedmedia.net>
List: netbsd-bugs
Date: 03/15/2003 23:37:30
>Number:         20735
>Category:       pkg
>Synopsis:       lang/gcc3 should build shared libraries under Linux
>Confidential:   yes
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Mar 15 23:38:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 1.6
>Organization:
http://bsd.reedmedia.net/
>Environment:
	
	
System: NetBSD rainier.reedmedia.net 1.6 NetBSD 1.6 (JCR-20020927) #3: Sat Sep 28 13:40:20 PDT 2002 reed@rainier.reedmedia.net:/usr/src/sys/arch/i386/compile/JCR-20020927 i386
Architecture: i386
Machine: i386
>Description:
I've been using lang/gcc3 on a few Linux systems for all my compiling needs.
But I noticed that bash and less needed libgcc_s.so.1 which didn't exist.
I noticed that a change to lang/gcc3 in January stopped the building
of the shared libraries.
>How-To-Repeat:
Use the gcc3 to build shells/bash and see that it needs the
non-existing shared library. (This is under Linux.)
>Fix:

diff -b -u -r1.5 Makefile
--- lang/gcc3/Makefile	2003/02/06 21:52:19	1.5
+++ lang/gcc3/Makefile	2003/03/16 07:33:04
@@ -30,7 +30,7 @@
 
 .include "../../mk/bsd.prefs.mk"
 
-.if ${OPSYS} == "NetBSD"
+.if ${OPSYS} == "NetBSD" || ${OPSYS} == "Linux"
 CONFIGURE_ARGS+=	--enable-shared
 .else
 CONFIGURE_ARGS+=	--disable-shared
>Release-Note:
>Audit-Trail:
>Unformatted: