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