diff options
author | netchild <netchild@FreeBSD.org> | 2003-04-26 10:27:29 +0000 |
---|---|---|
committer | netchild <netchild@FreeBSD.org> | 2003-04-26 10:27:29 +0000 |
commit | 64a545a03aebe3571ac1bd3d68336daeab3f363b (patch) | |
tree | 31e26d1b8b52b7393f7d8b569216290072f50d4f /lang/icc | |
parent | 502af32a44ea287be0ff86ffdc6ac46e6f0c7666 (diff) | |
download | FreeBSD-ports-64a545a03aebe3571ac1bd3d68336daeab3f363b.zip FreeBSD-ports-64a545a03aebe3571ac1bd3d68336daeab3f363b.tar.gz |
When trying to link dynamic libraries with dependancies, e.g:
icc -shared -o libfoo.so foo.o -lbaz
the ld wrapper gets confused and thinks that a static link is intended
and the link fails. This patch appears to fix things.
Submitted by: dfr
Diffstat (limited to 'lang/icc')
-rw-r--r-- | lang/icc/Makefile | 1 | ||||
-rw-r--r-- | lang/icc/files/ld.c | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/lang/icc/Makefile b/lang/icc/Makefile index e057893..e2ec6bf 100644 --- a/lang/icc/Makefile +++ b/lang/icc/Makefile @@ -7,6 +7,7 @@ PORTNAME= icc PORTVERSION= 7.1.011 +PORTREVISION= 1 CATEGORIES= lang linux devel MASTER_SITES= DISTNAME= l_cc_pu_${PORTVERSION} diff --git a/lang/icc/files/ld.c b/lang/icc/files/ld.c index d65b16d..fb34af1 100644 --- a/lang/icc/files/ld.c +++ b/lang/icc/files/ld.c @@ -205,6 +205,10 @@ main(int argc, char *argv[], char *envp[]) dynamic++; continue; } + if (ARGCMP("-shared")) { + dynamic++; + continue; + } /* * Just link libstlport_icc* once when compiling the stlport |