forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
blt-2.4z-darwin.patch
72 lines (70 loc) · 1.16 KB
/
blt-2.4z-darwin.patch
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
63
64
65
66
67
68
69
70
71
72
--- configure.in
+++ configure.in
@@ -183,9 +183,6 @@
blt_lib_prefix=""
fi
;;
- *-*-macosx)
- blt_platform="macosx"
- ;;
*)
blt_platform="unix"
;;
@@ -728,6 +725,9 @@
*-hpux*)
SHLIB_SUFFIX="sl"
;;
+ *-darwin*)
+ SHLIB_SUFFIX="dylib"
+ ;;
*)
SHLIB_SUFFIX="so"
;;
@@ -1145,6 +1145,13 @@
LDFLAGS=""
;;
+ *-darwin*)
+ SHLIB_CFLAGS=""
+ SHLIB_LD="${CC}"
+ SHLIB_LD_FLAGS='-dynamiclib -install_name $(libdir)/$@'
+ SHLIB_SUFFIX=".dylib"
+ ;;
+
*-dgux*)
SHLIB_CFLAGS="-K PIC"
SHLIB_LD="cc"
--- configure
+++ configure
@@ -1279,9 +1279,6 @@
blt_lib_prefix=""
fi
;;
- *-*-macosx)
- blt_platform="macosx"
- ;;
*)
blt_platform="unix"
;;
@@ -3396,6 +3393,9 @@
*-hpux*)
SHLIB_SUFFIX="sl"
;;
+ *-darwin*)
+ SHLIB_SUFFIX="dylib"
+ ;;
*)
SHLIB_SUFFIX="so"
;;
@@ -3943,6 +3943,13 @@
LDFLAGS=""
;;
+ *-darwin*)
+ SHLIB_CFLAGS=""
+ SHLIB_LD="${CC}"
+ SHLIB_LD_FLAGS='-dynamiclib -install_name $(libdir)/$@'
+ SHLIB_SUFFIX=".dylib"
+ ;;
+
*-dgux*)
SHLIB_CFLAGS="-K PIC"
SHLIB_LD="cc"