File: rules

package info (click to toggle)
golang-github-canonical-go-dqlite 1.11.5-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bookworm-proposed-updates
  • size: 704 kB
  • sloc: sh: 370; makefile: 7
file content (14 lines) | stat: -rwxr-xr-x 454 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/make -f

%:
	dh $@ --builddirectory=_build --buildsystem=golang --with=golang

override_dh_auto_build:
	CGO_LDFLAGS_ALLOW="-Wl,-z,now" dh_auto_build

# Because tests are sensitive when run on slower architectures, run them under
# autopkgtest marked as "flaky"; https://github.com/canonical/go-dqlite/issues/174
override_dh_auto_test:

autopkgtest:
	CGO_LDFLAGS_ALLOW="-Wl,-z,now" dh_auto_test -O--builddirectory=_build -O--buildsystem=golang