Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3
4 export DEB_BUILD_MAINT_OPTIONS=hardening=+all reproducible=+all future=+lfs
5
6 include /usr/share/dpkg/architecture.mk
7
8 # We ignore test failures on architectures not supported by upstream
9 # for now. This is probably not the best idea though...
10 supported_archs = amd64
11 ignore_tests = $(if $(filter-out $(supported_archs),$(DEB_HOST_ARCH)),-,)
12
13 # Test to avoid memory problems in mipsel
14 ifeq ($(DEB_HOST_ARCH),$(filter $(DEB_HOST_ARCH),mipsel))
15 export DEB_BUILD_MAINT_OPTIONS=parallel=1 hardening=+all reproducible=+all future=+lfs
16 CMAKE_FLAGS = -DCMAKE_EXE_LINKER_FLAGS="-fuse-ld=gold -Wl,--no-map-whole-files -Wl,--no-keep-memory -Wl,--no-keep-files-mapped" \
17 -DCMAKE_SHARED_LINKER_FLAGS="-fuse-ld=gold -Wl,--no-map-whole-files -Wl,--no-keep-memory -Wl,--no-keep-files-mapped" \
18 -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS=-Wa,--reduce-memory-overheads
19 no_dbssym = --no-automatic-dbgsym
20 endif
21
22
23 %:
24 dh $@
25
26 override_dh_auto_configure:
27 dh_auto_configure -- \
28 -DBUILD_TESTING=ON \
29 -DFCL_NO_DEFAULT_RPATH=OFF \
30 -DFCL_USE_X64_SSE=OFF \
31 $(CMAKE_FLAGS)
32
33 override_dh_auto_test:
34 $(ignore_tests)dh_auto_test
35
36 override_dh_strip:
37 dh_strip $(no_dbssym)