pkgsrc-wip/icc11/files
2009-11-14 14:45:32 +00:00
..
linux Update to version 11.1.059. Add multilib support (-m32|64) on x86_64. 2009-11-14 14:45:32 +00:00
as.c Complete rewrite of NetBSD wrappers (bump PKGVERSON). 2009-10-20 22:29:10 +00:00
icc Update to version 11.1.059. Add multilib support (-m32|64) on x86_64. 2009-11-14 14:45:32 +00:00
icc11bsd.c Complete rewrite of NetBSD wrappers (bump PKGVERSON). 2009-10-20 22:29:10 +00:00
ld.c Complete rewrite of NetBSD wrappers (bump PKGVERSON). 2009-10-20 22:29:10 +00:00
Makefile Update to version 11.1.059. Add multilib support (-m32|64) on x86_64. 2009-11-14 14:45:32 +00:00
README.bsd Complete rewrite of NetBSD wrappers (bump PKGVERSON). 2009-10-20 22:29:10 +00:00
README.pkgsrc Complete rewrite of NetBSD wrappers (bump PKGVERSON). 2009-10-20 22:29:10 +00:00
util.c Complete rewrite of NetBSD wrappers (bump PKGVERSON). 2009-10-20 22:29:10 +00:00
util.h Complete rewrite of NetBSD wrappers (bump PKGVERSON). 2009-10-20 22:29:10 +00:00
xiar Update to version 11.1.059. Add multilib support (-m32|64) on x86_64. 2009-11-14 14:45:32 +00:00

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