diff options
author | Alexander Leidinger <netchild@FreeBSD.org> | 2003-04-26 10:27:29 +0000 |
---|---|---|
committer | Alexander Leidinger <netchild@FreeBSD.org> | 2003-04-26 10:27:29 +0000 |
commit | aec1848380618270a05be5b37da86ed4bbedc127 (patch) | |
tree | 0a4ccdabd236af91d88eea9b13419ef981bf207d /lang/icc | |
parent | add WWW site (diff) |
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
Notes
Notes:
svn path=/head/; revision=79672
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 e057893c43cf..e2ec6bf95863 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 d65b16dba244..fb34af1edf94 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 |