Subject: port-amiga/1948: If DEBUG is set, "as" should not get it as an option
To: None <gnats-bugs@gnats.netbsd.org>
From: Niklas Hallqvist <niklas@filippa.appli.se>
List: netbsd-bugs
Date: 01/15/1996 23:09:02
>Number:         1948
>Category:       port-amiga
>Synopsis:       If DEBUG is set, "as" should not get it as an option
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 15 18:05:00 1996
>Last-Modified:
>Originator:     Niklas Hallqvist
>Organization:
	Applitron Datasytem AB
>Release:        951218
>Environment:
System: NetBSD filippa.appli.se 1.1_ALPHA NetBSD 1.1_ALPHA (FILIPPA) #562: Mon Dec 11 19:15:43 MET 1995 root@filippa.appli.se:/u3/newex/sys/arch/amiga/compile/FILIPPA amiga


>Description:
	The assembler should net get the options put in DEBUG by config,
	they're for the C compiler to use.
>How-To-Repeat:
	try:
	as -g
	and understand that that option isn't meant for the assembler.
>Fix:
	Remove the ${DEBUG} arg in the AS setting, as below:

Index: Makefile.amiga
===================================================================
RCS file: /cvs/src/sys/arch/amiga/conf/Makefile.amiga,v
retrieving revision 1.4
diff -c -r1.4 Makefile.amiga
*** Makefile.amiga	1995/12/30 08:20:02	1.4
--- Makefile.amiga	1996/01/15 22:06:02
***************
*** 23,29 ****
  
  # DEBUG is set to -g by config if debugging is requested (config -g).
  # PROF is set to -pg by config if profiling is requested (config -p).
! AS=	as ${DEBUG}
  CC=	cc ${DEBUG}
  CPP=	cpp
  LD=	ld 
--- 23,29 ----
  
  # DEBUG is set to -g by config if debugging is requested (config -g).
  # PROF is set to -pg by config if profiling is requested (config -p).
! AS=	as
  CC=	cc ${DEBUG}
  CPP=	cpp
  LD=	ld 

>Audit-Trail:
>Unformatted: