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
56
57
58
59
60
61
62
|
$NetBSD: patch-ab,v 1.7 2009/10/28 09:25:23 adam 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,17 +197,36 @@ 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)
# 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 = dylib
+ SHARED_LIB_TYPE = dylib
SHLIB_SUFFIX = dylib
endif
|