From 040b3f11ba6b5555d793a9ef79ed4d9032d22370 Mon Sep 17 00:00:00 2001 From: Qu Wenruo Date: Fri, 19 Dec 2014 14:13:08 +0800 Subject: btrfs-progs: Makefile: Move linker only option to LDFLAGS Move the linker only option -rdynamic to LDFLAGS. This resolve lots of the following warning if using clang as CC: clang: warning: argument unused during compilation: '-rdynamic' Signed-off-by: Qu Wenruo Reviewed-by: Satoru Takeuchi Signed-off-by: David Sterba --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 811fcfa9..8b843bb0 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,8 @@ CC = gcc LN = ln AR = ar AM_CFLAGS = -Wall -D_FILE_OFFSET_BITS=64 -DBTRFS_FLAT_INCLUDES -fno-strict-aliasing -fPIC -CFLAGS = -g -O1 -fno-strict-aliasing -rdynamic +CFLAGS = -g -O1 -fno-strict-aliasing +LDFLAGS = -rdynamic objects = ctree.o disk-io.o radix-tree.o extent-tree.o print-tree.o \ root-tree.o dir-item.o file-item.o inode-item.o inode-map.o \ extent-cache.o extent_io.o volumes.o utils.o repair.o \ -- cgit v1.2.3