summaryrefslogtreecommitdiff
path: root/textproc/xmlrpc-c/patches/patch-ab
blob: 8d4477fdc2e8cfcfae2ae9d6dbd24a073b9af25e (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
$NetBSD: patch-ab,v 1.6 2009/10/27 18:50:39 drochner Exp $

--- Makefile.config.in.orig	2008-03-25 15:24:58.000000000 +0100
+++ Makefile.config.in
@@ -155,6 +155,15 @@ ifeq ($(findstring solaris,$(HOST_OS)),s
   CFLAGS_SHLIB = -Kpic
 endif
 
+ifeq ($(HOST_OS),solaris2)
+  SHARED_LIB_TYPE = unix
+  SHLIB_SUFFIX = so
+  shlibfn = $(1:%=%.$(SHLIB_SUFFIX).$(MAJ).$(MIN))
+  shliblefn = $(1:%=%.$(SHLIB_SUFFIX))
+  LDFLAGS_SHLIB = -Wl,-Bdynamic,-G,-h,$(SONAME)
+  CFLAGS_SHLIB = -Kpic
+endif
+
 ifeq ($(HOST_OS),aix)
   # This code is not finished; that's why we don't set SHARED_LIB_TYPE.
   # If you can finish it and make it work on AIX, please do.
@@ -188,11 +197,30 @@ ifeq ($(HOST_OS),osf)
 endif
 
 ifeq ($(findstring netbsd,$(HOST_OS)),netbsd)
-  # This code is not finished; that's why we don't set SHARED_LIB_TYPE.
-  # If you can finish it and make it work on AIX, please do.
-  # SHARED_LIB_TYPE = unix
+  SHARED_LIB_TYPE = unix
+  SHLIB_SUFFIX = so
+  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
+  LDFLAGS_SHLIB = -shared -Wl,-soname,$(SONAME) $(SHLIB_CLIB)
+endif
+
+ifeq ($(findstring freebsd,$(HOST_OS)),freebsd)
+  SHARED_LIB_TYPE = unix
   SHLIB_SUFFIX = so
-  CFLAGS_SHLIB = -fpic
+  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),darwin)