Followup-For: Bug #884037 Control: tag -1 patch Hi,
attached you can find a patch to make xalan build on GNU/Hurd. I've tested this on the porterbox, but did not do further tests with the generated package. Hopefully this unblocks the dependency tree that currently cannot be built on hurd-i386. Andreas
Description: add GNU/Hurd support based on FREEBSD and LINUX Author: Andreas Beckmann <[email protected]> --- xalan-1.11.orig/c/Makefile.incl.in +++ xalan-1.11/c/Makefile.incl.in @@ -302,6 +302,33 @@ ifeq ($(PLATFORM), FREEBSD) endif +#=============== HURD SPECIFIC OPTIONS ====================== + +ifeq ($(PLATFORM), HURD) + + SUPPORTED = TRUE + ALLLIBS = ${LIBS} -L/usr/local/lib + SHLIBSUFFIX=.so + PIC_OPTION = -fPIC + + PLATFORM_COMPILE_OPTIONS = -D${PLATFORM} ${PIC_OPTION} ${WCSTOMBS} + + # We need the ICU library if we are using the ICUBridge + ifdef XALAN_USE_ICU + LD_RPATH_PRE = -Wl,-rpath, + PLATFORM_LIB_LINK_OPTIONS = $(LD_RPATH_PRE)${ICUROOT}/lib + endif + + CC1 = $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(PLATFORM_COMPILE_OPTIONS) + CC4 = $(CC) $(CFLAGS) $(PLATFORM_COMPILE_OPTIONS) + MAKE_SHARED = $(CXX) $(CXXFLAGS) -D${PLATFORM} -shared ${PIC_OPTION} ${LDFLAGS} + LINK_SONAME = -Wl,-soname,$(SO_NAME) + LINK = $(CXX) -D${PLATFORM} ${PIC_OPTION} ${LDFLAGS} + + MAKE_SHARED_LOC = ${CXX} $(CXXFLAGS) -Wl,-soname,$(LOC_SONAME) -D${PLATFORM} -shared ${PIC_OPTION} ${LDFLAGS} + +endif + #=============== NETBSD SPECIFIC OPTIONS ====================== ifeq ($(PLATFORM), NETBSD) --- xalan-1.11.orig/c/configure.in +++ xalan-1.11/c/configure.in @@ -64,6 +64,7 @@ case "${host}" in *-*-OS400*) platform=OS400 ;; *-*-cygwin*) platform=CYGWIN ;; *-*-mingw*) platform=MINGW ;; + *-*-gnu*) platform=HURD ;; *) platform=UNKNOWN ;; esac

