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]

[patch] Makefile.am for beeing able to compile with cairo


hi all,

out of curiosity I tried to do a built with cairo j2d support.
I checked out cairo from freedesktop.org and sourced the environment
variables accordingly (PKG_CONFIG_PATH, LD_LIBRARY_PATH).

compiling failed and gcc complained, that it isn't able to find cairo.h.
After looking into the Makefile.am in libjava I noticed, that the
$(CAIRO_CFLAGS) argument was missing.

Attached you'll find a little patch, that worked for me. 

--Jakob
Index: Makefile.am
===================================================================
RCS file: /cvsroot/gcc/gcc/libjava/Makefile.am,v
retrieving revision 1.357
diff -u -r1.357 Makefile.am
--- Makefile.am	24 Jan 2004 20:34:41 -0000	1.357
+++ Makefile.am	25 Jan 2004 17:26:30 -0000
@@ -460,7 +460,7 @@
 ## FIXME: see above
 $(gtk_c_files): %.lo: %.c
 	$(LTCOMPILE) -c -Ijniinclude -I$(srcdir)/jni/classpath -I$(srcdir)/jni/gtk-peer \
-	$(GTK_CFLAGS) $(LIBART_CFLAGS) $(CAIRO_LIBS) $(PANGOFT2_LIBS) -o $@ $<
+	$(GTK_CFLAGS) $(LIBART_CFLAGS) $(CAIRO_CFLAGS) $(CAIRO_LIBS) $(PANGOFT2_LIBS) -o $@ $<
 
 $(gtk_c_files): $(gtk_c_headers)
 

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