]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
debian: pin gcc-11
authorCasey Bodley <cbodley@redhat.com>
Wed, 6 Apr 2022 21:54:19 +0000 (14:54 -0700)
committerKefu Chai <tchaikov@gmail.com>
Sat, 30 Jul 2022 05:02:16 +0000 (13:02 +0800)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
debian/rules

index a0bc52c274bbd9e49b8a25dbb033755f9ad44482..796804fa9b706a0e4e7d77c518145a6f314a4d3e 100755 (executable)
@@ -4,6 +4,7 @@ export DH_VERBOSE=1
 export DESTDIR=$(CURDIR)/debian/tmp
 
 export DEB_HOST_ARCH      ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
+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,
   # which makes the application aborts when the shared library throws