1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-02 06:03:50 +00:00

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>
This commit is contained in:
Alexander Leidinger 2005-02-18 21:21:49 +00:00
parent 7e807bd8f0
commit 003de77308
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=129223
2 changed files with 5 additions and 1 deletions

View File

@ -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 | \

View File

@ -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