1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
CMAKE_EXTRA_FLAGS += -DBUILD_TESTING=OFF
%:
dh $@
override_dh_makeshlibs:
ifeq ($(DEB_BUILD_ARCH),amd64)
echo "Architecture amd64 is the only one where a symbols file is provided"
else
echo "Symbols file for architecture $(DEB_BUILD_ARCH) is not provided"
mkdir -p debian/hidesymbols
mv debian/*.symbols debian/hidesymbols
endif
dh_makeshlibs
ifeq ($(DEB_BUILD_ARCH),amd64)
echo "dh_makeshlibs for architecture amd64 including symbols done"
else
mv debian/hidesymbols/*.symbols debian
rmdir debian/hidesymbols
endif
override_dh_install:
dh_install
d-shlibmove --commit \
--multiarch \
--devunversioned \
--exclude-la \
--movedev debian/tmp/usr/include/* usr/include \
--movedev debian/tmp/usr/lib/*/cmake usr/lib/$(DEB_HOST_MULTIARCH) \
debian/tmp/usr/lib/*/*.so
override_dh_makeshlibs:
dh_makeshlibs 2>&1 | tee > ../dh_makeshlibs.diff
|