This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
[patch] Makefile.am for beeing able to compile with cairo
- From: Jakob Praher <jpraher at yahoo dot de>
- To: java at gcc dot gnu dot org
- Date: Sun, 25 Jan 2004 18:31:30 +0100
- Subject: [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)