From 64a545a03aebe3571ac1bd3d68336daeab3f363b Mon Sep 17 00:00:00 2001 From: netchild Date: Sat, 26 Apr 2003 10:27:29 +0000 Subject: 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 --- lang/icc7/Makefile | 1 + lang/icc7/files/ld.c | 4 ++++ 2 files changed, 5 insertions(+) (limited to 'lang/icc7') diff --git a/lang/icc7/Makefile b/lang/icc7/Makefile index e057893c43cf..e2ec6bf95863 100644 --- a/lang/icc7/Makefile +++ b/lang/icc7/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/icc7/files/ld.c b/lang/icc7/files/ld.c index d65b16dba244..fb34af1edf94 100644 --- a/lang/icc7/files/ld.c +++ b/lang/icc7/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 -- cgit