From: Kefu Chai Date: Sun, 5 Aug 2018 19:50:59 +0000 (+0800) Subject: debian: strip "-Wl,-Bsymbolic-functions" from LDFLAGS X-Git-Tag: v13.2.2~108^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F23490%2Fhead;p=ceph.git debian: strip "-Wl,-Bsymbolic-functions" from LDFLAGS Fixes: http://tracker.ceph.com/issues/25209 Fixes: http://tracker.ceph.com/issues/26880 Signed-off-by: Kefu Chai (cherry picked from commit 2063056f3ada7cf26d3c426385234e3a052193bf) --- diff --git a/debian/rules b/debian/rules index 85b327578610..865e863afc6f 100755 --- a/debian/rules +++ b/debian/rules @@ -4,6 +4,13 @@ export DH_VERBOSE=1 export DESTDIR=$(CURDIR)/debian/tmp export DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH) +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 + # exception, so strip this linker option, + # see http://tracker.ceph.com/issues/25209 + export DEB_LDFLAGS_MAINT_STRIP = -Wl,-Bsymbolic-functions +endif extraopts += -DUSE_CRYPTOPP=OFF -DWITH_OCF=ON -DWITH_LTTNG=ON -DWITH_PYTHON3=ON -DWITH_MGR_DASHBOARD_FRONTEND=OFF extraopts += -DWITH_CEPHFS_JAVA=ON