pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: libnbcompat fails to link, in bootstrap on Mac OS X 10.5.2 (x86)
Great sleuthing, Amitai...I don't know how I missed that.
A simple patch would be:
[~]
ajacocks@odysseus$ diff -Naur /usr/bin/mkdep.distrib /usr/bin/mkdep
--- /usr/bin/mkdep.distrib 2008-04-15 11:54:43.000000000 -0400
+++ /usr/bin/mkdep 2008-04-15 12:08:26.000000000 -0400
@@ -42,6 +42,12 @@
# Once we find it, we canonicalize its name and set the path to the
# default path so that other commands we use are picked properly.
+if [ "`echo "${CC}" | /usr/bin/wc -w`" -gt "1" ]; then
+ ccprog=`echo "${CC}" | /usr/bin/awk '{ print $1 }'`
+ ccargs=`echo "${CC}" | /usr/bin/sed "s/^${ccprog}//g"`
+ CC=${ccprog}
+fi
+
if ! type "${CC:=cc}" > /dev/null 2>&1; then
PATH=/bin:/usr/bin
export PATH
@@ -52,6 +58,10 @@
fi
cmd='set -- `type "${CC}"` ; eval echo \$$#'
CC=`eval $cmd`
+
+if [ ! -z "${ccargs}" ]; then
+ CC="${CC} ${ccargs}"
+fi
export CC
D=.depend # default dependency file is .depend
What do you think? Obviously this should not replace system mkdep,
but I did it that way for convenience sake.
Thanks!
On Tue, Apr 15, 2008 at 10:27 AM, Amitai Schlair <schmonz%mkgsrc.org@localhost>
wrote:
>
> On Apr 14, 2008, at 10:24 PM, Amitai Schlair wrote:
>
>
> > On Apr 8, 2008, at 4:36 PM, J. Alexander Jacocks wrote:
> >
> >
> > > mkdep: gcc -isystem /usr/include: not found
> > >
> >
> > Me three (10.5.2, Intel, case-insensitive fs). It worked a couple weeks
> ago.
> >
<snip>
Home |
Main Index |
Thread Index |
Old Index