sorry, the patch was not correct, here is the one with converted linker options.
- 02_fix_generic_ftbfs.patch: Link with gcc -shared, not ld; don't
explicitly link with libc.
diff -Nru java3d-1.5.2+dfsg/debian/patches/02_fix_generic_ftbfs.patch java3d-1.5.2+dfsg/debian/patches/02_fix_generic_ftbfs.patch
--- java3d-1.5.2+dfsg/debian/patches/02_fix_generic_ftbfs.patch 2018-03-09 06:46:01.000000000 +0800
+++ java3d-1.5.2+dfsg/debian/patches/02_fix_generic_ftbfs.patch 2018-03-26 08:59:08.000000000 +0800
@@ -120,8 +120,8 @@
+ </exec>
+
+ <!-- Create the library file-->
-+ <exec dir="${build}/${platform}/${bldType}/native/ogl/objs" executable="ld">
-+ <arg line="DrawingSurfaceObjectAWT.o Canvas3D.o GraphicsContext3D.o NativeScreenInfo.o NativeConfigTemplate3D.o MasterControl.o GeometryArrayRetained.o Attributes.o CgShaderProgram.o GLSLShaderProgram.o Lights.o -G -z defs -L/usr/X11R6/lib -ldl -lGL -lX11 -lXext -lm -lnsl -lc -L${java.home}/lib/${os.arch} -L${java.home}/lib -ljawt -L${java.home}/lib/${os.arch}/server -L${java.home}/lib/${os.arch}/client -L${java.home}/lib/server -L${java.home}/lib/client -ljvm -o libj3dcore-ogl.so"/>
++ <exec dir="${build}/${platform}/${bldType}/native/ogl/objs" executable="gcc">
++ <arg line="-shared DrawingSurfaceObjectAWT.o Canvas3D.o GraphicsContext3D.o NativeScreenInfo.o NativeConfigTemplate3D.o MasterControl.o GeometryArrayRetained.o Attributes.o CgShaderProgram.o GLSLShaderProgram.o Lights.o -Wl,-z,defs -L/usr/X11R6/lib -ldl -lGL -lX11 -lXext -lm -lnsl -L${java.home}/lib/${os.arch} -L${java.home}/lib -ljawt -L${java.home}/lib/${os.arch}/server -L${java.home}/lib/${os.arch}/client -L${java.home}/lib/server -L${java.home}/lib/client -ljvm -o libj3dcore-ogl.so"/>
+ </exec>
+
+ </target>
@@ -133,8 +133,8 @@
+ </exec>
+
+ <!-- Create the wrapper library -->
-+ <exec dir="${build}/${platform}/${bldType}/native/ogl/objs" executable="ld">
-+ <arg line="CgWrapper.o -G -z defs -L/usr/X11R6/lib -ldl -lCg -lCgGL -lpthread -lGL -lX11 -lXext -lm -lnsl -lc -o libj3dcore-ogl-cg.so"/>
++ <exec dir="${build}/${platform}/${bldType}/native/ogl/objs" executable="gcc">
++ <arg line="CgWrapper.o -Wl,-z,defs -L/usr/X11R6/lib -ldl -lCg -lCgGL -lpthread -lGL -lX11 -lXext -lm -lnsl -o libj3dcore-ogl-cg.so"/>
+ </exec>
+
+ </target>
__
This is the maintainer address of Debian's Java team
<http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-maintainers>.
Please use
[email protected] for discussions and questions.