Description: 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 --- 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: , Bug: Bug-Debian: https://bugs.debian.org/ Bug-Ubuntu: https://launchpad.net/bugs/ Forwarded: Reviewed-By: Last-Update: 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