Subject: cc problem with new buildlink framework
To: None <tech-pkg@netbsd.org>
From: Georg Schwarz <geos@epost.de>
List: tech-pkg
Date: 02/08/2004 17:59:14
The compiler handling with the new buildlink framework causes some
problems on IRIX 5.3, where /usr/bin/cc is a symbolic link:
lrwxr-xr-x 1 root sys 17 Dec 29 15:32 /usr/bin/cc ->
../lib/driverwrap
When compiling (as an example archivers/lha) one gets:
===> Building for lha-114.9nb1
make all in src...
cc -O2 -DSUPPORT_LH7 -DMKSTEMP -DNEED_INCREMENTAL_INDICATOR
-DTMP_FILENAME_TEMPLATE="\"/tmp/lhXXXXXX\"" -DSYSTIME_HAS_NO_TM -DMKTIME
-DUSESTRCASECMP -DSYSV_SYSTEM_DIR -I/usr/local/pkg/include -c lharc.c
cc ERROR: cc is not installed in
/usr/people/schwarz/pkgsrc/archivers/lha/work/.mipspro/bin/../lib/cc
*** Error code 1
When explicitely setting on the command line CC=/usr/lib/cc things work
(it does not work when setting CC in /etc/mk.conf though. Why?). I
wonder why the buildlink framework cannot handle a cc which is a
symbolic link.
--
Georg Schwarz http://home.pages.de/~schwarz/
geos@epost.de +49 177 8811442