[Java-gnome-developer] Compiling on RedHat 7.1 & IBM jdk 1.3.0
Brought to you by:
afcowie
From: Philip A. C. <the...@be...> - 2001-07-10 03:37:04
|
Because RedHat 7.1 has gcj installed with jni.h in /usr/include, java-gnome does not compile correctly. instead of including the jdk's jni.h, gcj's version is included. To fix this, I changed the order of the -I parameters to gcc in java-gnome/src/Makefile.in. Here is the diff: 48,49c48,49 < gcc -c $(CFLAGS) $< -o $@ $(GTK_CFLAGS) $(GNOME_CFLAGS) \ < $(LIBGLADE_CFLAGS) $(JAVA_INCLUDES) -D@MACRO_FLAG@ --- > gcc -c $(CFLAGS) $< -o $@ $(JAVA_INCLUDES) $(GTK_CFLAGS) \ > $(GNOME_CFLAGS) $(LIBGLADE_CFLAGS) -D@MACRO_FLAG@ The orginal Makefile.in is the first file, my change is in the second file. |