[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Exceptions in shared lib with icc on Linux
From: |
Robert Boehne |
Subject: |
Re: Exceptions in shared lib with icc on Linux |
Date: |
Tue, 07 Jan 2003 21:30:31 -0600 |
Albert,
I think it may be that an Autoconf macro is re-setting this
later on. I seem to get "archive_cmds_need_lc=yes" in nearly
every case I look at.
Robert
Albert Chin wrote:
>
> On Mon, Jan 06, 2003 at 05:29:04PM +0100, Martin Frydl wrote:
> > I've found problem when throwing exception from shared library when
> > compiled with icc on Linux. I've attached a test case. The source of
> > this problem is probably linking against c library. Libtool uses this
> > command line:
> >
> > icpc -shared -nostdlib .libs/sub1.o -lc -Qoption,ld,-soname \
> > -Qoption,ld,libshr.so.0 -o .libs/libshr.so.0.0.0
>
> Odd that -lc got in there. From libtool.m4 in CVS:
> icpc)
> # Intel C++
> with_gnu_ld=yes
> _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
>
> I presume archive_cmds_need_lc=no means that -lc should not be added.
> Anyone know more?
>
> --
> albert chin (address@hidden)
>
> _______________________________________________
> Libtool mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/libtool