Subject: misc/3671: failure making shared libs.
To: None <gnats-bugs@gnats.netbsd.org>
From: None <nimenees@par0163.urh.uiuc.edu>
List: netbsd-bugs
Date: 05/25/1997 18:08:49
>Number:         3671
>Category:       misc
>Synopsis:       Making shared libraries fails due to bad flags to as
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    misc-bug-people (Misc Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun May 25 16:20:01 1997
>Last-Modified:
>Originator:     Eric Haszlakiewicz
>Organization:
>Release:        1.2E
>Environment:
	Pentium.
System: NetBSD par0163.urh.uiuc.edu 1.2E NetBSD 1.2E (REALMS) #72: Sat May 24 16:57:03 CDT 1997 root@par0163.urh.uiuc.edu:/usr/src/sys/arch/i386/compile/REALMS i386


>Description:
	The current makefiles/.mk files pass the wrong flags to as
	when compiling syscalls.  Ends up being "-fpic -DPIC" when
	it should be "-k".
>How-To-Repeat:
	cd src/lib/libc ; make accept.so
>Fix:
	Change the default in bsd.lib.mk:

--- bsd.lib.mmm	Sun May 25 18:01:20 1997
+++ bsd.lib.mk	Sun May 25 18:02:24 1997
@@ -73,7 +73,7 @@
 SHLIB_LDENDFILE=
 SHLIB_SOVERSION=${SHLIB_MAJOR}.${SHLIB_MINOR}
 CPICFLAGS?= -fpic -DPIC
-APICFLAGS?= -fpic -DPIC
+APICFLAGS?= -k
 
 .endif
 

>Audit-Trail:
>Unformatted: