Makefile: move -rdynamic to linking flag
[fio.git] / Makefile
index 2b9c006ba9f1b63c6c9715ee7591ff41676d2e1b..84e7a4bed649a51d9e4141845b0e5f0e537f0682 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -22,7 +22,7 @@ ifeq ($(UNAME), Linux)
                engines/splice.c engines/syslet-rw.c engines/guasi.c \
                engines/binject.c engines/rdma.c profiles/tiobench.c
   LIBS += -lpthread -ldl -lrt -laio
-  CFLAGS += -rdynamic
+  LDFLAGS += -rdynamic
 endif
 ifeq ($(UNAME), SunOS)
   SOURCE += fifo.c lib/strsep.c helpers.c engines/posixaio.c \
@@ -33,12 +33,12 @@ endif
 ifeq ($(UNAME), FreeBSD)
   SOURCE += helpers.c engines/posixaio.c
   LIBS  += -lpthread -lrt
-  CFLAGS += -rdynamic
+  LDFLAGS += -rdynamic
 endif
 ifeq ($(UNAME), NetBSD)
   SOURCE += helpers.c engines/posixaio.c
   LIBS  += -lpthread -lrt
-  CFLAGS += -rdynamic
+  LDFLAGS += -rdynamic
 endif
 ifeq ($(UNAME), AIX)
   SOURCE += fifo.c helpers.c lib/getopt_long.c engines/posixaio.c