summaryrefslogtreecommitdiff
path: root/textproc/xerces-c/patches/patch-aa
blob: 798c52afa8844ef69c5abc860f75770adee62ba8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
$NetBSD: patch-aa,v 1.5 2009/05/10 11:24:27 hasso Exp $

--- ../../samples/Makefile.incl.orig	2007-08-28 21:47:02 +0300
+++ ../../samples/Makefile.incl	2009-05-08 12:50:45 +0300
@@ -270,6 +270,20 @@ ifeq (${PLATFORM}, FREEBSD)
   endif
 endif
 
+#=============== DRAGONFLY SPECIFIC OPTIONS =========================
+ifeq (${PLATFORM}, DRAGONFLY)
+  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
+
 #=============== NETBSD SPECIFIC OPTIONS =========================
 ifeq (${PLATFORM}, NETBSD)
   CMP= -c ${CXXFLAGS}