Blame SOURCES/opafm-link-all-executables-with-pie.patch

dea3a0
diff --git a/Esm/ib/src/linux/startup/Makefile b/Esm/ib/src/linux/startup/Makefile
dea3a0
index ad23e67..00c7f2c 100644
dea3a0
--- a/Esm/ib/src/linux/startup/Makefile
dea3a0
+++ b/Esm/ib/src/linux/startup/Makefile
dea3a0
@@ -145,7 +145,7 @@ include $(TL_DIR)/Makerules/Maketargets.build
dea3a0
 include $(TL_DIR)/Makerules/Maketargets.install
dea3a0
 
dea3a0
 $(BUILDDIR)/opafmd: $(BUILDDIR)/opafmd.o
dea3a0
-	$(VS)$(CC) -pthread $(LDFLAGS)$@ $(BUILDDIR)/opafmd.o $(LDLIBS)
dea3a0
+	$(VS)$(CC) -pie -pthread $(LDFLAGS)$@ $(BUILDDIR)/opafmd.o $(LDLIBS)
dea3a0
 
dea3a0
 $(BUILDDIR)/opaxmlextract: $(PROJ_BIN_DIR)/opaxmlextract
dea3a0
 	cp $(PROJ_BIN_DIR)/opaxmlextract $(BUILDDIR)
dea3a0
diff --git a/Esm/ib/src/linux/startup/fm_config/Makefile b/Esm/ib/src/linux/startup/fm_config/Makefile
dea3a0
index c4108fa..cd3f301 100644
dea3a0
--- a/Esm/ib/src/linux/startup/fm_config/Makefile
dea3a0
+++ b/Esm/ib/src/linux/startup/fm_config/Makefile
dea3a0
@@ -150,10 +150,10 @@ include $(TL_DIR)/Makerules/Maketargets.build
dea3a0
 include $(TL_DIR)/Makerules/Maketargets.install
dea3a0
 
dea3a0
 $(BUILDDIR)/config_check: $(BUILDDIR)/config_check.o
dea3a0
-	$(VS)$(CC) $(LDFLAGS)$@ $(BUILDDIR)/config_check.o $(LDLIBS)
dea3a0
+	$(VS)$(CC) -pie $(LDFLAGS)$@ $(BUILDDIR)/config_check.o $(LDLIBS)
dea3a0
 
dea3a0
 $(BUILDDIR)/config_convert: $(BUILDDIR)/config_convert.o
dea3a0
-	$(VS)$(CC) $(LDFLAGS)$@ $(BUILDDIR)/config_convert.o $(LDLIBS)
dea3a0
+	$(VS)$(CC) -pie $(LDFLAGS)$@ $(BUILDDIR)/config_convert.o $(LDLIBS)
dea3a0
 
dea3a0
 # install for stage phase
dea3a0
 #include $(TL_DIR)/Makerules/Maketargets.stage
dea3a0
diff --git a/Makerules/Maketargets.build b/Makerules/Maketargets.build
dea3a0
index ebf9fdf..9cd7844 100755
dea3a0
--- a/Makerules/Maketargets.build
dea3a0
+++ b/Makerules/Maketargets.build
dea3a0
@@ -127,7 +127,7 @@ else # BUILD_TARGET_OS is not VXWORKS
dea3a0
 $(CMD_TARGETS_EXE) :	$(CT_OBJECTS) $(RSCOBJECTS) $(DEPLIBS_TARGETS)
dea3a0
 	@echo Linking executable...
dea3a0
 	@mkdir -p $(dir $@)
dea3a0
-	$(VS)$(CC) $(LDFLAGS)$@ $(CT_OBJECTS) $(LDLIBS)
dea3a0
+	$(VS)$(CC) -pie $(LDFLAGS)$@ $(CT_OBJECTS) $(LDLIBS)
dea3a0
 endif # BUILD_TARGET_OS is VXWORKS
dea3a0
 endif # CMD_TARGETS_EXE non-null
dea3a0