Re: xmlroff works on Cygwin

"Gerrit P. Haase" <[email protected]> Tue, 23 Aug 2005 02:58:10 +0200
Newsgroups gmane.text.xml.xmlroff.general
Organization Esse keine toten Tiere
Message-ID <[email protected]>
Tony Graham wrote:
> "Gerrit P. Haase" <[email protected]> writes:
> 
>>Just fetched the 0.3.5 release with pangoxsl-1.6.0.1.
>>
>>It is actually working and producing a real PDF!
> 
> 
> That's good news.
> 
> 
>>I needed only two minor changes in Makefile.am to get a clean build
>>(and of course reconfigury with the Cygwin autotools).
> 
> 
> What changes?

Cygwin / Windows does not alllow to link binaries if the references
to functions and other imports cannot be resolved.  Therefore
libtool needs the flsg -no-undefined and all libraries used need to
be added to the link command.

diff -urN -x .build -x .inst -x .sinst xmlroff-0.3.5-orig/Makefile.am 
xmlroff-0.3.5/Makefile.am
--- xmlroff-0.3.5-orig/Makefile.am	2005-08-14 21:58:34.000000000 +0200
+++ xmlroff-0.3.5/Makefile.am	2005-08-19 20:05:59.430811900 +0200
@@ -37,7 +37,7 @@

  #-release $(VERSION)

-libfo_0_3_la_LDFLAGS = \
+libfo_0_3_la_LDFLAGS = -no-undefined \
  	-version-info $(LT_VERSION_INFO)

  libfo_0_3_includedir = $(includedir)/libfo-0.3
@@ -66,7 +66,15 @@
  	fo/libfo-fo.la			\
  	datatype/libfo-datatype.la	\
  	property/libfo-property.la	\
-	libfo/libfo-libfo.la
+	libfo/libfo-libfo.la \
+	$(PANGOXSL_LIBS) \
+	$(PANGO_LIBS) \
+	$(GNOMEPRINT_LIBS) \
+	$(LIBXSLT_LIBS) \
+	$(GOBJECT_LIBS) \
+	$(FREETYPE_LIBS) \
+	$(POPT_LIBS)	\
+	$(GDKPIXBUF_LIBS)

  xmlroff_SOURCES = \
  	xmlroff.c


Gerrit


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf