File: rules

package info (click to toggle)
libmnl 1.0.4-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 1,840 kB
  • ctags: 735
  • sloc: sh: 11,274; ansic: 3,958; makefile: 84
file content (20 lines) | stat: -rwxr-xr-x 438 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f
# -*- makefile -*-

export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

_configure := --libdir=/lib/$(DEB_HOST_MULTIARCH) --enable-static

CFLAGS += -fstack-protector-all

%:
	dh $@ -- --with autoreconf

override_dh_auto_configure:
	dh_auto_configure -- $(_configure)

override_dh_link:
	LIBMNL_SO_VER=$(shell basename $(CURDIR)/debian/tmp/lib/*/libmnl.so.*.* | sed 's/.*\.so\.\(.*\)/\1/') \
	dh_link