On Sun, Apr 21, 2002 at 09:24:26PM -0700, Steve Fink wrote: > On Mon, Apr 22, 2002 at 12:00:31AM -0400, David Hand wrote: > > > > Index: hints/darwin.pl > > =================================================================== > > RCS file: /home/perlcvs/parrot/hints/darwin.pl,v > > retrieving revision 1.4 > > diff -u -r1.4 darwin.pl > > --- hints/darwin.pl 8 Feb 2002 06:25:38 -0000 1.4 > > +++ hints/darwin.pl 22 Apr 2002 03:45:49 -0000 > > @@ -1,5 +1,6 @@ > > $c{ccflags} .= " -I/sw/include"; > > $c{ccflags} =~ s/-flat_namespace\s*//; > > +$c{ldflags} =~ s/-flat_namespace\s*//; > > $c{ldflags} .= " -L/sw/lib -flat_namespace "; > > $c{libs} .= " -ldl"; > > $c{cc_warn} = "-Wno-shadow" > > You sure about that patch? Looks like you're removing it and adding it > the next line.
Well, "-flat_namespace" needs to be there that once, but only once. What was happening to me was that it was being added even though it was there. It seems rather easier to remove it if it exists and then unconditionally add it, rather than looking for it and adding it if it's not there. Either way, though, really. Perhaps this instead? Index: hints/darwin.pl =================================================================== RCS file: /home/perlcvs/parrot/hints/darwin.pl,v retrieving revision 1.4 diff -u -r1.4 darwin.pl --- hints/darwin.pl 8 Feb 2002 06:25:38 -0000 1.4 +++ hints/darwin.pl 22 Apr 2002 04:32:28 -0000 @@ -1,5 +1,6 @@ $c{ccflags} .= " -I/sw/include"; $c{ccflags} =~ s/-flat_namespace\s*//; -$c{ldflags} .= " -L/sw/lib -flat_namespace "; +$c{ldflags} .= " -L/sw/lib "; +$c{ldflags} .= " -flat_namespace " unless $c{ldflags} =~ /-flat_namespace\s*/; $c{libs} .= " -ldl"; $c{cc_warn} = "-Wno-shadow" -- David "Cogent" Hand <http://davidhand.com/> <mailto:[EMAIL PROTECTED]> <icq:4321282>