tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: clang support (was: [HEADS-UP] Freeze in Preparation for pkgsrc-2010Q4 Branch)
On Sun, 26 Dec 2010 02:13:09 +0900, Edgar Fuà <ef%math.uni-bonn.de@localhost>
wrote:
1. Bootstrap
Bootstrapping unconditionaly sets CC to gcc. I think this should be possible to
override:
Index: bootstrap/bootstrap
===================================================================
RCS file: /cvsroot/pkgsrc/bootstrap/bootstrap,v
retrieving revision 1.159
diff -u -r1.159 bootstrap
--- bootstrap/bootstrap 30 Aug 2010 06:21:49 -0000 1.159
+++ bootstrap/bootstrap 25 Dec 2010 16:35:35 -0000
@@ -472,7 +472,7 @@
set_opsys=no
[ -z "$fetch_cmd" ] && fetch_cmd="/usr/bin/ftp"
machine_arch=`uname -p`
- CC="gcc -isystem /usr/include"; export CC
+ CC=${CC:-"gcc -isystem /usr/include"}; export CC
osrev=`uname -r`
macosx_version=`echo $osrev | awk -F . '{ print "10."$1-4; }'`
case "$macosx_version" in
Is it possible to support --compiler=clang bootstrap option, same as
doing for IRIX and Solaris?
2. ABI
In bsd.prefs.mk, there is commented-out logic for Snow Leopard to autodetect
32/64Bit API. Could this be enables?
As far as I remember, some libraries from system is broken for 64bit,
so disabled by default.
You can use "--abi 64" bootstrap option, but I don't know it works for Darwin.
--
OBATA Akio / obache%NetBSD.org@localhost
Home |
Main Index |
Thread Index |
Old Index