Subject: kern/54: genassym should be linked statically
To: None <gnats-admin>
From: None <mckim@lerc.nasa.gov>
List: netbsd-bugs
Date: 12/29/1993 14:35:05
>Number:         54
>Category:       kern
>Synopsis:       genassym should be linked statically
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnats-admin (Kernel Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 29 14:35:05 1993
>Originator:     Jim McKim
>Organization:
NASA Lewis Research Center
>Release:        NetBSD-current
>Environment:
    	
System: NetBSD 0.9
Architecture: i386

>Description:
	
genassym, created as part of the kernel recompilation process is built
shared. It might be better to build it static (at least until shared
libraries are commonly available). The impact would be small on those
who already have shared libraries, but would be one less chuckhole in
the road for those trying to bootstrap from 0.9

>How-To-Repeat:
	
Install the -current gcc, as, ld.
Recompile the kernel.
The makefile will compile genassym. The -current compiler
defaults to non-static libraries. The resultant genassym executable will not
run correctly.

>Fix:
*** usr/src/sys/arch/i386/conf/Makefile.i386.orig	Wed Dec 29 14:50:22 1993
--- usr/src/sys/arch/i386/conf/Makefile.i386	Wed Dec 29 14:50:55 1993
***************
*** 114,120 ****
  	./genassym >assym.s
  
  genassym: ${I386}/i386/genassym.c
! 	${CC} ${INCLUDES} -DKERNEL ${IDENT} ${PARAM} \
  		 ${I386}/i386/genassym.c -o genassym
  
  depend: assym.s param.c
--- 114,120 ----
  	./genassym >assym.s
  
  genassym: ${I386}/i386/genassym.c
! 	${CC} -static ${INCLUDES} -DKERNEL ${IDENT} ${PARAM} \
  		 ${I386}/i386/genassym.c -o genassym
  
  depend: assym.s param.c

>Audit-Trail:
>Unformatted:


------------------------------------------------------------------------------