From 80e38259e3da7229b1470d3e3721ffb5462eae57 Mon Sep 17 00:00:00 2001 From: schwarz Date: Sun, 7 Jun 2009 11:34:27 +0000 Subject: /usr/bin/gcc on MacOS X is a wrapper that expects to call the (architecture- dependent) real gcc binary with the same path as it has been evoked. When it is called via a symbolic link this fails since the evokation path in that case is the original one of the symbolic link. For that reason pkgsrc's buildlink framework must be prevented from using symbolic links to refer to /usr/bin/gcc. imac:/tmp schwarz$ ln -s /usr/bin/gcc gcc imac:/tmp schwarz$ /tmp/gcc gcc: installation problem, cannot exec '/tmp/powerpc-apple-darwin8-gcc-4.0.1': No such file or directory --- mk/platform/Darwin.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'mk/platform/Darwin.mk') diff --git a/mk/platform/Darwin.mk b/mk/platform/Darwin.mk index bc2b9f480c6..080eb72bad4 100644 --- a/mk/platform/Darwin.mk +++ b/mk/platform/Darwin.mk @@ -1,4 +1,4 @@ -# $NetBSD: Darwin.mk,v 1.37 2009/05/06 10:28:01 tron Exp $ +# $NetBSD: Darwin.mk,v 1.38 2009/06/07 11:34:27 schwarz Exp $ # # Variable definitions for the Darwin operating system. @@ -38,6 +38,10 @@ IMAKEOPTS+= -DInstallFlags=-c # do not set user or group # Use the GNU cpp, not the OS X cpp, don't look in "/usr/local/include" # before "/usr/include". CPP_PRECOMP_FLAGS?= -no-cpp-precomp -isystem /usr/include +# don't symlink to /usr/bin/gcc since the latter is a wrapper that tries +# evoke the real (architecture-dependent) gcc binary in the same place +# which fails when called via a symlink from a different directory +COMPILER_USE_SYMLINKS?= no .endif DEF_UMASK?= 0022 DEFAULT_SERIAL_DEVICE?= /dev/null -- cgit v1.2.3