File: rules

package info (click to toggle)
laszip 3.4.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,796 kB
  • sloc: cpp: 27,613; ansic: 1,494; sh: 157; makefile: 137; python: 31
file content (27 lines) | stat: -rwxr-xr-x 570 bytes parent folder | download
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
#!/usr/bin/make -f

# DH_VERBOSE := 1

# Enable hardening build flags
export DEB_BUILD_MAINT_OPTIONS=hardening=+all

# Remove buildpath from binaries
export DEB_CFLAGS_MAINT_APPEND=-DNDEBUG
export DEB_CXXFLAGS_MAINT_APPEND=-DNDEBUG

DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- -DCMAKE_INSTALL_LIBDIR=lib/$(DEB_HOST_MULTIARCH)

override_dh_install:
	dh_install --list-missing

	# Strip RPATH
	chrpath --delete debian/*/usr/lib/*/*.so.?.?.?

override_dh_makeshlibs:
	dh_makeshlibs -V