blob: 73552ddd3550f14c4c7920908631479babe34bc3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
Disclaimer: this document is not a part of Intel distribution.
How to use pkgsrc with the Intel C++ Compiler
=============================================
License
-------
The compiler will search for a license file in a directory specified
by ${INTEL_LICENSE_FILE} variable if it's set, then in
@ICC_PREFIX@/licenses, ${HOME}/intel/licenses and /opt/intel/licenses
directories.
There is one caveat, though. Pkgsrc creates a fake home directory
so ${HOME}/intel/licenses is not a good choice for building
packages.
Bootstrap
---------
Some options below are probably redundant but these commands work
for me:
$ cat > /tmp/mk-fragment <<EOF
PKGSRC_COMPILER=icc
ICCBASE=@ICC_PREFIX@
NOGCCERROR=yes
EOF
$ env PKGSRC_COMPILER=icc \
> ICCBASE=@ICC_PREFIX@ \
> NOGCCERROR=yes \
> CC=@ICC_PREFIX@/bin/icc \
> CPP='@ICC_PREFIX@/bin/icc -E' \
> CXX=@ICC_PREFIX@/bin/icpc \
> ./bootstrap \
> --compiler=icc \
> --mk-fragment=/tmp/mk-fragment \
> ...
Building Packages
-----------------
Add these lines to your mk.conf file:
PKGSRC_COMPILER=icc
ICCBASE=@ICC_PREFIX@
NOGCCERROR=yes
|