diff options
author | Alexander Leidinger <netchild@FreeBSD.org> | 2005-02-18 21:21:49 +0000 |
---|---|---|
committer | Alexander Leidinger <netchild@FreeBSD.org> | 2005-02-18 21:21:49 +0000 |
commit | 003de773082b6f9fd77df4f5648e31bb1d422ea4 (patch) | |
tree | f599164baa07288feaa7e890f88f89844488c92d /lang/icc | |
parent | - Use ${MASTER_SITE_THEMES} (diff) |
The static linking case (C++ only) expects a crtbeginT.o. Based upon
inspection of src/contrib/gnu/crtstuff.c it seems it's the same as
crtbegin.o, so make a symlink for it. At least linking a "Hello World"
program with -static produces a working executable now.
Noticed by: Niklas Sorensson <nik@cs.chalmers.se>
Notes
Notes:
svn path=/head/; revision=129223
Diffstat (limited to 'lang/icc')
-rw-r--r-- | lang/icc/Makefile | 5 | ||||
-rw-r--r-- | lang/icc/pkg-plist | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/lang/icc/Makefile b/lang/icc/Makefile index cd7b248eb23f..7fade79427e7 100644 --- a/lang/icc/Makefile +++ b/lang/icc/Makefile @@ -7,7 +7,7 @@ PORTNAME= icc PORTVERSION= 8.1.026 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= lang linux devel MASTER_SITES= DISTNAME= l_cc_pc_${PORTVERSION:C/p.+$//} @@ -219,6 +219,9 @@ do-build: .for file in crtbegin.o crtend.o libgcc.a @cd ${WRKSRC}/opt/${COMPILERDIR}/lib && ${LN} -s /usr/lib/${file} ${file} .endfor +# The static linking case expects a crtbeginT.o. Based upon inspection of +# /usr/src/contrib/gnu/crtstuff.c it seems it's the same as crtbegin.o. + @cd ${WRKSRC}/opt/${COMPILERDIR}/lib && ${LN} -s crtbegin.o crtbeginT.o do-install: @cd ${WRKSRC}/opt && ${FIND} . -print | \ diff --git a/lang/icc/pkg-plist b/lang/icc/pkg-plist index fa00166b5340..b546ebf53b6b 100644 --- a/lang/icc/pkg-plist +++ b/lang/icc/pkg-plist @@ -930,6 +930,7 @@ %%COMPILERDIR%%/include/xmmintrin.h @dirrm %%COMPILERDIR%%/include %%COMPILERDIR%%/lib/crtbegin.o +%%COMPILERDIR%%/lib/crtbeginT.o %%COMPILERDIR%%/lib/crtend.o %%COMPILERDIR%%/lib/crtxi.o %%COMPILERDIR%%/lib/crtxn.o |