From 7720c783b8a8f8911a79b965d9176aba839829e6 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Mon, 10 Mar 2008 21:57:45 +0000 Subject: Allow building with xulrunner 1.9. Patch by Alexander Sack; part of bug #503657 svn path=/trunk/; revision=8094 --- src/Makefile.am | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/Makefile.am') diff --git a/src/Makefile.am b/src/Makefile.am index 6d8c4b968..19dffcd9d 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -180,6 +180,16 @@ libpyphany_la_LIBADD = \ $(PYGTK_LIBS) endif + +# we do this to force c++ linkage if we are using the glue and +# are running gecko 1.9 because standalone glue embedders that use +# gtk_moz_embed_* need to #include +if HAVE_GECKO_1_9 +if HAVE_GECKO_XPCOM_GLUE +nodist_EXTRA_epiphany_SOURCES = dummy.cpp +endif +endif + epiphany_SOURCES = ephy-main.c epiphany_CPPFLAGS = \ @@ -194,6 +204,7 @@ epiphany_CPPFLAGS = \ epiphany_CFLAGS = \ $(DEPENDENCIES_CFLAGS) \ + $(GECKO_CFLAGS) \ $(DBUS_CFLAGS) \ $(AM_CFLAGS) @@ -214,6 +225,7 @@ endif if WITH_GECKO_ENGINE epiphany_LDADD += \ + $(GECKO_LIBS) \ $(top_builddir)/embed/mozilla/libephymozillaembed.la endif @@ -234,7 +246,9 @@ epiphany_LDADD += $(LIBXUL_LIBS) -lxpcomglue endif if WITH_GECKO_ENGINE +if !HAVE_GECKO_XPCOM_GLUE epiphany_LDFLAGS += -R$(GECKO_HOME) +endif epiphany_LDADD += \ $(GECKO_LIBS) \ @@ -248,6 +262,7 @@ epiphany_LDADD += \ endif epiphany_LDADD += \ + $(GECKO_LIBS) \ $(DEPENDENCIES_LIBS) \ $(DBUS_LIBS) \ $(LIBINTL) -- cgit