summaryrefslogtreecommitdiff
path: root/textproc/xmlrpc-c/patches/patch-ab
blob: bc644bfa4bd0a130fe5ced41ed0ff174e6c60026 (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
26
27
28
29
30
$NetBSD: patch-ab,v 1.3 2007/04/06 11:44:34 obache Exp $

--- Makefile.config.in.orig	2006-09-28 02:15:55.000000000 +0000
+++ Makefile.config.in
@@ -204,12 +204,22 @@ ifeq ($(HOST_OS),osf)
   LDFLAGS_SHLIB = -shared -expect_unresolved
 endif
 
-ifeq ($(findstring netbsd,$(HOST_OS)),FIND)
+ifeq ($(findstring netbsd,$(HOST_OS)),netbsd)
   SHARED_LIB_TYPE = unix
   SHLIB_SUFFIX = so
-  shlibfn = $(1:%=%.$(SHLIB_SUFFIX).$(MAJ))
+  shlibfn = $(1:%=%.$(SHLIB_SUFFIX).$(MAJ).$(MIN))
+  shliblefn = $(1:%=%.$(SHLIB_SUFFIX))
+  CFLAGS_SHLIB = -fPIC
+  LDFLAGS_SHLIB = -shared -Wl,-soname,$(SONAME) $(SHLIB_CLIB)
+endif
+
+ifeq ($(HOST_OS),dragonfly)
+  SHARED_LIB_TYPE = unix
+  SHLIB_SUFFIX = so
+  shlibfn = $(1:%=%.$(SHLIB_SUFFIX).$(MAJ).$(MIN))
   shliblefn = $(1:%=%.$(SHLIB_SUFFIX))
-  CFLAGS_SHLIB = -fpic
+  CFLAGS_SHLIB = -fPIC
+  LDFLAGS_SHLIB = -shared -Wl,-soname,$(SONAME) $(SHLIB_CLIB)
 endif
 
 ifeq ($(HOST_OS),darwin)