From: Noah Watkins Date: Mon, 30 Dec 2013 20:03:54 +0000 (-0800) Subject: make: restrict use of --as-needed to Linux X-Git-Tag: v0.75~14^2~7 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f7a66d6bbe7421de6d9b5113c43834d03421fd8b;p=ceph.git make: restrict use of --as-needed to Linux This should really be checked in configure.ac in the future. Signed-off-by: Noah Watkins --- diff --git a/src/Makefile-env.am b/src/Makefile-env.am index ba1d3dc08e3..ef8a8f3b541 100644 --- a/src/Makefile-env.am +++ b/src/Makefile-env.am @@ -91,7 +91,10 @@ endif # http://www.gentoo.org/proj/en/qa/asneeded.xml # http://gcc.gnu.org/ml/gcc-help/2010-12/msg00338.html # http://sigquit.wordpress.com/2011/02/16/why-asneeded-doesnt-work-as-expected-for-your-libraries-on-your-autotools-project/ -AM_LDFLAGS = -Wl,--as-needed +AM_LDFLAGS = +if LINUX +AM_LDFLAGS += -Wl,--as-needed +endif if USE_BOOST_SPIRIT_OLD_HDR AM_CXXFLAGS += -DUSE_BOOST_SPIRIT_OLD_HDR