File: rules

package info (click to toggle)
postgresql-filedump 9.6.0-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 164 kB
  • ctags: 103
  • sloc: ansic: 1,476; makefile: 55; sh: 15
file content (18 lines) | stat: -rwxr-xr-x 515 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f

# disable PIE on 32bit because it's disabled in PostgreSQL's libpgport.a
# as well, cf. comments in postgresql-9.6's debian/rules and #797530
ifneq ($(shell dpkg-architecture -qDEB_HOST_ARCH_BITS || :),32)
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
else
export DEB_BUILD_MAINT_OPTIONS = hardening=+all,-pie
endif

DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

%:
	dh $@

override_dh_auto_install:
	$(MAKE) install USE_PGXS=1 DESTDIR=$(CURDIR)/debian/postgresql-filedump