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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
Description: <short summary of the patch>
TODO: Put a short summary on the line above and replace this paragraph
with a longer explanation of this change. Complete the meta-information
with other relevant fields (see below for details). To make it easier, the
information below has been extracted from the changelog. Adjust it or drop
it.
.
postgresql-10 (10.0-1+dyson0.1) unstable; urgency=medium
.
* Package for Dyson
* No SMF service yet. Just need a library.
* Added debian/patches/dyson.patch
Author: Igor Pashev <pashev.igor@gmail.com>
---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:
Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: <YYYY-MM-DD>
Index: postgresql-10-10.0/src/makefiles/Makefile.solaris
===================================================================
--- postgresql-10-10.0.orig/src/makefiles/Makefile.solaris
+++ postgresql-10-10.0/src/makefiles/Makefile.solaris
@@ -2,26 +2,16 @@
AROPT = crs
-ifeq ($(with_gnu_ld), yes)
export_dynamic = -Wl,-E
-rpath = -Wl,-rpath,'$(rpathdir)'
-else
-rpath = -Wl,-R'$(rpathdir)'
-endif
+# Use --enable-new-dtags to generate DT_RUNPATH instead of DT_RPATH.
+# This allows LD_LIBRARY_PATH to still work when needed.
+rpath = -Wl,-rpath,'$(rpathdir)',--enable-new-dtags
DLSUFFIX = .so
-ifeq ($(GCC), yes)
+
CFLAGS_SL = -fPIC
-else
-CFLAGS_SL = -KPIC
-endif
+
# Rule for building a shared library from a single .o file
%.so: %.o
-ifeq ($(GCC), yes)
$(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_SL) -shared -o $@ $<
-else
- $(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_SL) -G -o $@ $<
-endif
-
-sqlmansect = 5sql
Index: postgresql-10-10.0/src/Makefile.shlib
===================================================================
--- postgresql-10-10.0.orig/src/Makefile.shlib
+++ postgresql-10-10.0/src/Makefile.shlib
@@ -209,7 +209,7 @@ ifeq ($(PORTNAME), hpux)
endif
endif
-ifeq ($(PORTNAME), linux)
+ifneq (,$(filter $(PORTNAME),linux solaris))
LINK.shared = $(COMPILER) -shared
ifdef soname
LINK.shared += -Wl,-soname,$(soname)
@@ -221,21 +221,6 @@ ifeq ($(PORTNAME), linux)
endif
endif
-ifeq ($(PORTNAME), solaris)
- ifeq ($(GCC), yes)
- LINK.shared = $(COMPILER) -shared
- else
- LINK.shared = $(COMPILER) -G
- endif
- ifdef soname
- ifeq ($(with_gnu_ld), yes)
- LINK.shared += -Wl,-soname,$(soname)
- else
- LINK.shared += -h $(soname)
- endif
- endif
-endif
-
ifeq ($(PORTNAME), cygwin)
LINK.shared = $(CC) -shared
ifdef SO_MAJOR_VERSION
|