openbsd-ports/textproc/xerces-c/patches/patch-tests_Makefile_incl
ajacoutot ec4f145d94 Import xerces-c-2.8.0
Xerces-C++ is a validating XML parser written in a portable subset of
C++.  Xerces-C++ makes it easy to give your application the ability to
read and write XML data.  A shared library is provided for parsing,
generating, manipulating, and validating XML documents using the DOM,
SAX, and SAX2 APIs.  For an introduction to programming with Xerces-C++
refer to the Programming Guide.
<...>

ok landry@
2008-10-26 23:15:15 +00:00

25 lines
856 B
Plaintext

$OpenBSD: patch-tests_Makefile_incl,v 1.1.1.1 2008/10/26 23:15:18 ajacoutot Exp $
--- tests/Makefile.incl.orig Sun Oct 26 19:56:59 2008
+++ tests/Makefile.incl Sun Oct 26 19:57:29 2008
@@ -283,6 +283,20 @@ ifeq (${PLATFORM}, NETBSD)
endif
endif
+#=============== OPENBSD SPECIFIC OPTIONS =========================
+ifeq (${PLATFORM}, OPENBSD)
+ CMP= -c ${CXXFLAGS}
+ CC= ${COMPILER} -c -D${PLATFORM} -fPIC
+ LINK = ${COMPILER} -D${PLATFORM} -fPIC ${LDFLAGS}
+ PLATFORM_LIB_LINK_OPTIONS=-Wl,-rpath,${XERCESCROOT}/lib
+ ifdef ICUROOT
+ PLATFORM_LIB_LINK_OPTIONS+=-L${ICUROOT} -Wl,-rpath,${ICUROOT}
+ EXTRA_LINK_OPTIONS=-licudata -lstdc++ ${EXTRA_LIBS}
+ else
+ EXTRA_LINK_OPTIONS=${EXTRA_LIBS} -lstdc++
+ endif
+endif
+
#================= HP SPECIFIC OPTIONS ===========================
ifeq (${PLATFORM}, HPUX)
ifeq (${GXX}, yes)