]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
debian: strip "-Wl,-Bsymbolic-functions" from LDFLAGS
authorKefu Chai <kchai@redhat.com>
Sun, 5 Aug 2018 19:50:59 +0000 (03:50 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 6 Aug 2018 07:46:07 +0000 (15:46 +0800)
Fixes: http://tracker.ceph.com/issues/25209
Signed-off-by: Kefu Chai <kchai@redhat.com>
debian/rules

index f1e3930a746e4e41dc934e7f48a83e12a452561c..fd752bc5d4f4f74559ef8365354a10e4ee07c969 100755 (executable)
@@ -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 += -DWITH_OCF=ON -DWITH_LTTNG=ON -DWITH_PYTHON3=ON -DWITH_MGR_DASHBOARD_FRONTEND=OFF
 extraopts += -DWITH_CEPHFS_JAVA=ON