From: Christophe Courtaut Date: Tue, 15 Oct 2013 14:23:37 +0000 (+0200) Subject: ceph: Remove unavailable option with clang X-Git-Tag: v0.73~85^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F734%2Fhead;p=ceph.git ceph: Remove unavailable option with clang Some options are unavailable in clang. (-Wstrict-null-sentinel, -rdynamic) They were reintroduced by this commit https://github.com/ceph/ceph/commit/6949d221ada12e6be4b5ebf94b58edd17288fb16 This patch fixes it. Signed-off-by: Christophe Courtaut --- diff --git a/src/Makefile-env.am b/src/Makefile-env.am index 6a4e09512a29..9b611596c7f2 100644 --- a/src/Makefile-env.am +++ b/src/Makefile-env.am @@ -52,7 +52,6 @@ AM_COMMON_CPPFLAGS = \ -DCEPH_LIBDIR=\"${libdir}\" AM_COMMON_CFLAGS = \ - -rdynamic \ -Wall \ ${WARN_TYPE_LIMITS} \ ${WARN_IGNORED_QUALIFIERS} \ @@ -61,6 +60,9 @@ AM_COMMON_CFLAGS = \ -Werror=format-security \ -fno-strict-aliasing \ -fsigned-char +if !CLANG + AM_COMMON_FLAGS += -rdynamic +endif AM_CFLAGS = $(AM_COMMON_CFLAGS) AM_CPPFLAGS = $(AM_COMMON_CPPFLAGS) @@ -68,8 +70,10 @@ AM_CXXFLAGS = \ @AM_CXXFLAGS@ \ $(AM_COMMON_CFLAGS) \ -Wnon-virtual-dtor \ - -Wno-invalid-offsetof \ - -Wstrict-null-sentinel + -Wno-invalid-offsetof +if !CLANG + AM_CXXFLAGS += -Wstrict-null-sentinel +endif # note: this is position dependant, it affects the -l options that # come after it on the command line. when you use ${AM_LDFLAGS} in