summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschwarz <schwarz@pkgsrc.org>2009-06-07 11:34:27 +0000
committerschwarz <schwarz@pkgsrc.org>2009-06-07 11:34:27 +0000
commit2a675e518aaf3a4db06e18df57f7e2024475ca18 (patch)
treea52be194bb2b09a89979c2dd744d2d3a4c64f4a5
parent7d20d1d221844333a7532a1eff8c40290e925d69 (diff)
downloadpkgsrc-2a675e518aaf3a4db06e18df57f7e2024475ca18.tar.gz
/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
-rw-r--r--mk/platform/Darwin.mk6
1 files changed, 5 insertions, 1 deletions
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