From 71bbd5542fb58ae61448933cd952d2fee2c44462 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 24 Feb 2011 05:49:29 -0800 Subject: [PATCH] Makefile: fix libatomic_ops linking LDADD seems to have no effect on the final link command. Switching this back to AM_LDFLAGS. This was changed as in 1c7d8f1ac2c, although it's not clear that the change was intentional... Signed-off-by: Sage Weil --- src/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile.am b/src/Makefile.am index c175244527f43..948811b440bd4 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -409,7 +409,7 @@ AM_CFLAGS = -Wall -D__CEPH__ -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_THREAD_SAFE AM_LDFLAGS = -Wl,--as-needed if WITH_LIBATOMIC -LDADD += -latomic_ops +AM_LDFLAGS += -latomic_ops endif noinst_LIBRARIES = \ -- 2.39.5