Subject: port-sun3/4014: sun3/stand doesn't work with objdirs
To: None <gnats-bugs@gnats.netbsd.org>
From: None <lm@cs.rmit.edu.au>
List: netbsd-bugs
Date: 08/19/1997 19:41:59
>Number:         4014
>Category:       port-sun3
>Synopsis:       sun3/stand doesn't work with objdirs
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 19 02:50:04 1997
>Last-Modified:
>Originator:     Luke Mewburn
>Organization:
>Release:        970816
>Environment:
System: NetBSD karybdis 1.2G NetBSD 1.2G (LUKEM) #7: Sun Aug 17 14:04:56 EST 1997 lukem@karybdis:/z/src/current/src/sys/arch/i386/compile/LUKEM i386

>Description:
	sun3/stand won't compile if you've done a "make obj" first
	because it assumes that libsa is relative to the objdir.

	it appears that sun3x/stand has the same bug, BTW.

>How-To-Repeat:
	cd /sys/arch/sun3/stand
	make obj
	make

>Fix:
	apply this patch to /sys/arch/sun3/stand/Makefile.inc
	should probably also apply it to /sys/arch/sun3x/stand/Makefile.inc

*** Makefile.inc.orig	Tue Aug 19 19:14:31 1997
--- Makefile.inc	Tue Aug 19 19:15:23 1997
***************
*** 11,17 ****
  INCL?= -I${.CURDIR} -I${.CURDIR}/../libsa -I${S}/lib/libsa -I${S}
  COPTS?= -msoft-float ${DEFS} ${INCL} ${DBG}
  
! LIBSA?= ../libsa
  SRTOBJ?= ${LIBSA}/SRT0.o ${LIBSA}/SRT1.o
  SRTLIB?= ${LIBSA}/libsa.a
  
--- 11,18 ----
  INCL?= -I${.CURDIR} -I${.CURDIR}/../libsa -I${S}/lib/libsa -I${S}
  COPTS?= -msoft-float ${DEFS} ${INCL} ${DBG}
  
! LIBSA!=	cd ${.CURDIR}/../libsa;\
!     printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}\n" | ${MAKE} -s -f-
  SRTOBJ?= ${LIBSA}/SRT0.o ${LIBSA}/SRT1.o
  SRTLIB?= ${LIBSA}/libsa.a
  
>Audit-Trail:
>Unformatted: