[CRIU] [PATCH 02/10] make: Use -fpie instead of -fpic
Cyrill Gorcunov
gorcunov at openvz.org
Sat Apr 14 16:43:51 EDT 2012
Since we're generating blobs for execution
better to use -fpie which serves for such
things.
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
Makefile | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
index 72505a0..aa2f801 100644
--- a/Makefile
+++ b/Makefile
@@ -81,11 +81,11 @@ all: $(PROGRAM)
$(OBJS-BLOB): $(SRCS-BLOB)
$(E) " CC " $@
- $(Q) $(CC) -c $(CFLAGS) -fpic $< -o $@
+ $(Q) $(CC) -c $(CFLAGS) -fpie $< -o $@
parasite-util-net.o: util-net.c
$(E) " CC " $@
- $(Q) $(CC) -c $(CFLAGS) -fpic $< -o $@
+ $(Q) $(CC) -c $(CFLAGS) -fpie $< -o $@
$(HEAD-BIN): $(PIE-LDS) $(OBJS-BLOB) parasite-util-net.o
$(E) " GEN " $@
@@ -98,7 +98,7 @@ $(HEAD-BLOB-GEN): $(HEAD-BIN) $(GEN-OFFSETS)
$(ROBJS): $(RSRCS-BLOB)
$(E) " CC " $@
- $(Q) $(CC) -c $(CFLAGS) -fpic $(patsubst %.o,%.c,$@) -o $@
+ $(Q) $(CC) -c $(CFLAGS) -fpie $(patsubst %.o,%.c,$@) -o $@
$(RHEAD-BIN): $(ROBJS) $(PIE-LDS)
$(E) " GEN " $@
--
1.7.7.6
More information about the CRIU
mailing list