]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Makefile.am: explicitly mention that -Wl,--as-needed is location-sensitive.
authorTommi Virtanen <tommi.virtanen@dreamhost.com>
Wed, 9 Mar 2011 18:17:20 +0000 (10:17 -0800)
committerTommi Virtanen <tv@inktank.com>
Tue, 5 Jun 2012 17:40:29 +0000 (10:40 -0700)
src/Makefile.am

index 4d936f0d199273d0ad0c39123f911443d98b0907..784098ebd2658cd1261f62c34e828e62e2263459 100644 (file)
@@ -862,6 +862,14 @@ AM_CXXFLAGS = $(AM_COMMON_FLAGS) \
        -Wnon-virtual-dtor \
        -Wno-invalid-offsetof \
        -Wstrict-null-sentinel
+# note: this is position dependant, it affects the -l options that
+# come after it on the command line. when you use ${AM_LDFLAGS} in
+# later rules, take care where you place it. for more information, see
+# http://blog.flameeyes.eu/2008/11/19/relationship-between-as-needed-and-no-undefined-part-1-what-do-they-do
+# http://blog.flameeyes.eu/2008/11/20/misguided-link-and-as-needed
+# 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
 
 if USE_BOOST_SPIRIT_OLD_HDR