[stgt] [PATCH 2/2] tgtd doesn't need -fPIC

Andy Grover agrover at redhat.com
Wed Sep 28 22:26:25 CEST 2011


I'm not sure what difference it makes, but the main binaries don't need
-fPIC, only the loadable modules do.

Signed-off-by: Andy Grover <agrover at redhat.com>
---
 usr/Makefile |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/usr/Makefile b/usr/Makefile
index b8ab805..df78e15 100644
--- a/usr/Makefile
+++ b/usr/Makefile
@@ -23,7 +23,7 @@ CFLAGS += -g -O0 -ggdb -rdynamic
 else
 CFLAGS += -g -O2 -fno-strict-aliasing
 endif
-CFLAGS += -Wall -Wstrict-prototypes -fPIC
+CFLAGS += -Wall -Wstrict-prototypes
 CFLAGS += -DTGT_VERSION=\"$(VERSION)$(EXTRAVERSION)\"
 
 LIBS += -lpthread -ldl
@@ -60,7 +60,7 @@ tgtimg: tgtimg.o libssc.o libcrc32c.o
 
 -include tgtimg.d libssc.d
 
-tgt-iser.so: CFLAGS += -shared -libverbs -lrdmacm
+tgt-iser.so: CFLAGS += -shared -fPIC -libverbs -lrdmacm
 tgt-iser.so: iscsi/iser.o iscsi/iser_text.o
 	$(CC) $(CFLAGS) -o $@ $^
 
-- 
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list