summaryrefslogtreecommitdiff
path: root/mk/platform/Darwin.mk
diff options
context:
space:
mode:
authorschwarz <schwarz>2009-06-07 11:34:27 +0000
committerschwarz <schwarz>2009-06-07 11:34:27 +0000
commit200fe8b3569ee3e5534182518ec2af3f5a609967 (patch)
treea52be194bb2b09a89979c2dd744d2d3a4c64f4a5 /mk/platform/Darwin.mk
parent759326924b9cffd17f7153179b55e703a65f0ef2 (diff)
downloadpkgsrc-200fe8b3569ee3e5534182518ec2af3f5a609967.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
Diffstat (limited to 'mk/platform/Darwin.mk')
-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