File: rules

package info (click to toggle)
ell 0.56-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,232 kB
  • sloc: ansic: 57,362; sh: 4,471; makefile: 551
file content (17 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)

%:
	dh $@ --with autoreconf --exclude=.la

override_dh_auto_configure:
	dh_auto_configure -- --enable-static

override_dh_auto_test:
	# DBus is needed to run the tests
	# Some tests are not compatible with LTO, not supported by upstream:
	# https://lore.kernel.org/ell/c5629468613b76d7fe650006c2276f7f49a42e2b.camel@intel.com/T/
	dbus-run-session -- make CFLAGS="$(CFLAGS) -fno-lto" check VERBOSE=1