]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
debian: use dpkg/default.mk to init popular make variables
authorKefu Chai <tchaikov@gmail.com>
Thu, 4 Aug 2022 06:12:34 +0000 (14:12 +0800)
committerKefu Chai <tchaikov@gmail.com>
Thu, 4 Aug 2022 08:35:20 +0000 (16:35 +0800)
Signed-off-by: Kefu Chai <tchaikov@gmail.com>
debian/rules

index 796804fa9b706a0e4e7d77c518145a6f314a4d3e..6303fbb2e75dfde06ffe093488b6f91bed7b3a8f 100755 (executable)
@@ -3,7 +3,8 @@
 export DH_VERBOSE=1
 export DESTDIR=$(CURDIR)/debian/tmp
 
-export DEB_HOST_ARCH      ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
+include /usr/share/dpkg/default.mk
+
 extraopts += -DCMAKE_C_COMPILER=gcc-11 -DCMAKE_CXX_COMPILER=g++-11
 ifneq (,$(findstring WITH_STATIC_LIBSTDCXX,$(CEPH_EXTRA_CMAKE_ARGS)))
   # dh_auto_build sets LDFLAGS with `dpkg-buildflags --get LDFLAGS` on ubuntu,