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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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@xxxxxxxxxx>
 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
 CFLAGS += -g -O2 -fno-strict-aliasing
-CFLAGS += -Wall -Wstrict-prototypes -fPIC
+CFLAGS += -Wall -Wstrict-prototypes
 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 $@ $^

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

[Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Free Online Dating]     [Linux Kernel]     [XFree86]     [Video Devices]

Add to Google Powered by Linux