Re: [sdljava-users] Building jni files fails on x86_64
Status: Beta
Brought to you by:
ivan_ganza
From: Ivan Z. G. <iva...@ya...> - 2006-12-03 23:55:26
|
Hi J=E9r=F4me, Thanks for noticing this and the patch! I've udpated the Makefile in CVS. Cheers, -Ivan/ J=E9r=F4me Marant wrote: >Hi, > >sdljava JNI libraries won't build on many archictectures such as x86_64 = without >position-independent code. > >Here is the required patch: > >=3D=3D=3D=3D=3D >--- etc/build/linux/Makefile.orig 2005-02-20 23:19:13.000000000 +0100 >+++ etc/build/linux/Makefile 2006-11-26 14:18:44.844731127 +0100 >@@ -2,7 +2,7 @@ >=20 > CC =3D gcc >=20 >-CFLAGS=3D-O3 >+CFLAGS=3D-O3 -fPIC >=20 > INCLUDE=3D-I. -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux -I/us= r/include -I/usr/include/SDL -I/usr/local/include -I/usr/local/include/SD= L >=20 >=3D=3D=3D=3D=3D > >Regards, > > =20 > |