libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: libtool/ltmain linking wrong (/usr/lib) libstdc++


From: Ralf Wildenhues
Subject: Re: libtool/ltmain linking wrong (/usr/lib) libstdc++
Date: Tue, 24 Apr 2007 23:15:46 +0200
User-agent: Mutt/1.5.13 (2006-08-11)

* Liviu Nicoara wrote on Tue, Apr 24, 2007 at 11:00:26PM CEST:
> Ralf Wildenhues wrote:
> >  ./libtool --tag=CXX --config

> Sorry for that, here's the right one.

Thanks.  First, the $predep_objects are all wrong, and some of the
$postdep_objects actually belong in $predep_objects.  I assume that
similar to the pending PathScale compiler bug, this may kill
construction of static class instantiations.

Could you please show your compiler's output of
  icpc -shared -g -O2 -v conftest.o

for a conftest.o compiled from this conftest.cpp:
class Foo
{
  public:
    Foo (void) { a = 0; }
  private:
    int a;
};

Please copy and paste the output exactly, including line wrapping
(attach if your mailer mangles it otherwise).

Thanks,
Ralf

| predep_objects="-mIPOPT_obj_output_file_name=/tmp/ipo_icpcKYjZtc.o 
-mGLOB_obj_output_file=/tmp/ipo_icpcKYjZtc.o"
| 
| # Dependencies to place after the objects being linked to create a
| # shared library.
| postdep_objects="/usr/lib/crti.o 
/opt/compilers/gcc-4.1.2/lib/gcc/i486-slackware-linux/4.1.2/crtbeginS.o 
/opt/compilers/gcc-4.1.2/lib/gcc/i486-slackware-linux/4.1.2/crtendS.o 
/usr/lib/crtn.o"
| 
| # Dependencies to place before the objects being linked to create a
| # shared library.
| predeps=""
| 
| # Dependencies to place after the objects being linked to create a
| # shared library.
| postdeps="-L/opt/compilers/intel-9.1.042/lib 
-L/opt/compilers/gcc-4.1.2/lib/gcc/i486-slackware-linux/4.1.2/ 
-L/opt/compilers/gcc-4.1.2/lib/gcc/i486-slackware-linux/4.1.2/../../../ 
-L/usr/lib -limf -lm -lipgo -lstdc++ -lgcc_s -lcxaguard -lirc -lc -lgcc_s 
-lirc_s -ldl -lc"





reply via email to

[Prev in Thread] Current Thread [Next in Thread]