This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Performance gcj & mysql



I run gcj -static-libgcj --main=MysqlConnect -o mysqlconnect
MysqlConnect.java mysql-5.0.8.o

i get:
/usr/bin/ld: cannot find -lgcj
collect2: ld returned 1 exit status

The file libgcj.spec :
%rename startfile startfileorig
*startfile:  %(startfileorig)

%rename lib liborig
*lib: %{static-libgcj:-non_shared} %{s-bc-abi:-lgcj_bc;:-lgcj}
%{static-libgcj:-call_shared} -lm   -lpthread -lrt -lz   -ldl %(libgcc) 
%(liborig)

*jc1: -fhash-synchronization -fno-use-divide-subroutine  -fuse-boehm-gc
-fnon-call-exceptions   -fkeep-inline-functions


I cant find any lgcj file, i found libgcj, even changing the names i get the
same error. Sghould i define a path or add any other file ?



Andrew Haley wrote:
> 
> Marco Trudel wrote:
>> Andrew Haley wrote:
> 
>>>> 2) ./mysqlconnect stays dependant of the gcj libraries? When i
>>>> uninstall gcj
>>>> the executable complains about libgcj. Is there any way to have it
>>>> totally
>>>> independent, for example i want to copy the executable and
>>>> mysql-5.0.8.o
>>>> library without worring if have have gcj installed on that machine.
>>>
>>> This is very difficult.  The -static-libgcj option might help,
>>> but I wouldn't guarantee it.  For more details see:
>>> http://gcc.gnu.org/wiki/Statically%20linking%20libgcj
>> 
>> Actually it works quite well as long as you know some little details.
> 
> Well, no.  It can work in some circumstances, and in others it doesn't
> work at all.
> 
> Andrew.
> 
> 

-- 
View this message in context: http://www.nabble.com/Performance-gcj---mysql-tp19375453p19441905.html
Sent from the gcc - java mailing list archive at Nabble.com.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]