Annotation of pkgsrc/bootstrap/README.Linux, revision 1.3
1.3 ! grant 1: $NetBSD: README.Linux,v 1.2 2005/02/15 09:39:06 grant Exp $
1.1 grant 2:
3: Please read the general README file as well.
4:
5: Some versions of Linux (for example Debian GNU/Linux) need either libtermcap
6: or libcurses (libncurses). Installing the distributions libncurses-dev
7: package (or equivalent) should fix the problem.
1.2 grant 8:
9: pkgsrc supports both gcc (GNU Compiler Collection) and icc (Intel C++
10: Compiler). gcc is the default. icc 8.0 and 8.1 on i386 have been tested.
11:
12: To bootstrap using icc, assuming the default icc installation
13: directory:
14:
15: env CC=/opt/intel_cc_80/bin/icc LDFLAGS=-static-libcxa \
16: ac_cv___attribute__=yes ./bootstrap
17:
1.3 ! grant 18: note: icc 8.1 needs the `-i-static' argument instead of
! 19: -static-libcxa.
! 20:
1.2 grant 21: icc supports __attribute__, but the GNU configure test uses a nested
22: function, which icc does not support. #undef'ing __attribute__ has the
23: unfortunate side-effect of breaking many of the Linux header files, which
24: cannot be compiled properly without __attribute__. The test must be
25: overridden so that __attribute__ is assumed supported by the compiler.
26:
27: After bootstrapping, you should set PKGSRC_COMPILER in mk.conf:
28:
29: PKGSRC_COMPILER=icc
30:
31: The default installation directory for icc is /opt/intel_cc_80, which
32: is also the pkgsrc default. If you have installed it into a different
33: directory, set ICCBASE in mk.conf:
34:
35: ICCBASE=/opt/icc
36:
37: pkgsrc uses the static linking method of the runtime libraries
38: provided by icc, so binaries can be run on other systems which do not
39: have the shared libraries installed.
40:
41: Libtool, however, extracts a list of libraries from the ld(1) command
42: run when linking a C++ shared library and records it, throwing away
43: the -Bstatic and -Bdynamic options interspersed between the libraries.
44: This means that libtool-linked C++ shared libraries will have a
45: runtime dependency on the icc libraries until this is fixed in
46: libtool.
CVSweb <webmaster@jp.NetBSD.org>