[prev in list] [next in list] [prev in thread] [next in thread]
List: kde
Subject: Problems with libtool on sparc-solaris 7
From: "Michael Teske" <mteske () c-s-k ! de>
Date: 1999-06-25 16:11:27
[Download RAW message or body]
Hi!
I have a very subtile problem with KDE libraries on solaris 7.
It has come up since the developers decided to use libtool for linking
shared libraries instead of plain g++.
The problem arises on libraries which have global Variables of complex types in
it (this is for example libkab).
It can be reproduced with the following:
main program:
extern string x
int main () {
x = "blaBla"
}
library:
string x;
This crashes, when the library linked with libtool, but not when linked with
g++ -shared.
The reaseon is that libtool doesn't use g++ anymore but straight /usr/cc/bin/ld
(why?) and then there are som g++ initialization modules missing in the .so.
g++ -shared uses this much more complex ld command line (for my test library),
and that works:
ld -V -G -dy -z text -h libkabtest.so -Y P,/usr/ccs/lib:/usr/lib
-Qy -o libkabtest.so /appl/lib/gcc-lib/sparc-sun-solaris2.7/2.7.2.2/crti.o
/usr/ccs/lib/values-Xa.o
/appl/lib/gcc-lib/sparc-sun-solaris2.7/2.7.2.2/crtbegin.o
-L/appl/lib/gcc-lib/sparc-sun-solaris2.7/2.7.2.2 -L/usr/ccs/bin -L/usr/ccs/lib
-L/appl/lib libkabtest.o -lg++ -lstdc++ -lm
/appl/lib/gcc-lib/sparc-sun-solaris2.7/2.7.2.2/crtend.o
/appl/lib/gcc-lib/sparc-sun-solaris2.7/2.7.2.2/crtn.o
Question: Does anybody know how to convince libtool not to use ld directly?
Ist there a switch in configer?
Or do I have to use GNU ld and recompile my gcc (not wanted at all)?
Thanks for listening,
Michael
P.S: My system is Sun Ultra 5 with Solaris 7 and gcc 2.7.2.2
--
Michael Teske
"My opinions are not necessarily understandable."
--
Send posts to: kde@lists.netcentral.net
Send all commands to: kde-request@lists.netcentral.net
Put your command in the SUBJECT of the message:
"subscribe", "unsubscribe", "set digest on", or "set digest off"
PLEASE READ THE ARCHIVED MESSAGES AT http://lists.kde.org/ BEFORE POSTING
**********************************************************************
This list is from your pals at NetCentral <http://www.netcentral.net/>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic