File: rules

package info (click to toggle)
gtkgl2 2.1.0-0.3
  • links: PTS
  • area: main
  • in suites: bullseye, sid
  • size: 452 kB
  • sloc: ansic: 3,004; makefile: 67; sh: 5
file content (19 lines) | stat: -rwxr-xr-x 573 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f

# Link with libX11 because the code calls XFree().
LIBS := -lX11

DEB_BUILD_MAINT_OPTIONS := hardening=+all
DEB_LDFLAGS_MAINT_APPEND := -Wl,--no-undefined \
  -Wl,--no-copy-dt-needed-entries -Wl,--no-allow-shlib-undefined
# Note that --as-needed is enabled by default with gcc-9, so LIBS
# above are only effective on required architectures.
include /usr/share/dpkg/buildflags.mk

%:
	dh $@

.PHONY: override_dh_auto_configure
override_dh_auto_configure:
	dh_auto_configure -- --with-lib-GL \
	  $(foreach v,CFLAGS CPPFLAGS LDFLAGS LIBS,$(v)='$($(v))')