Subject: Re: Sparc 5 newbie stuff
To: None <port-sparc@netbsd.org>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: port-sparc
Date: 01/24/2002 14:41:25
>> [make misbehaving wrt /usr/src/obj]
> :) I got bit by that recently, too, on i386. The explanation I was
> given is that "yes it is broken and needs to be fixed". The
> solutions I was offered were 1. Don't put your objects in
> /usr/src/obj, and 2. Don't use objdirs at all.
Heh. IMO make's support for obj/ is more of a pain than a blessing.
For example, here's one of the hunks from my private patches to
ghostscript (Aladdin Ghostscript 6.0):
@@ -26,14 +26,18 @@
# source, generated intermediate file, and object directories
# for the graphics library (GL) and the PostScript/PDF interpreter (PS).
+# NetBSD make(1) has this lovely undocumented little feature that in some
+# circumstances, if an "obj/" subdir exists, it will silently chdir to it,
+# thereby causing commands to unexpectedly fail because the current directory
+# has changed out from under them! Thus, we s/obj/xobj/ here.
BINDIR=./bin
GLSRCDIR=./src
-GLGENDIR=./obj
-GLOBJDIR=./obj
+GLGENDIR=./xobj
+GLOBJDIR=./xobj
PSSRCDIR=./src
PSLIBDIR=./lib
-PSGENDIR=./obj
-PSOBJDIR=./obj
+PSGENDIR=./xobj
+PSOBJDIR=./xobj
# Do not edit the next group of lines.
/~\ The ASCII der Mouse
\ / Ribbon Campaign
X Against HTML mouse@rodents.montreal.qc.ca
/ \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B