diff -Nur a/speech_tools/main/Makefile b/speech_tools/main/Makefile
--- a/speech_tools/main/Makefile	2023-06-06 14:34:57.288951580 +0800
+++ b/speech_tools/main/Makefile	2023-06-06 15:17:39.448951580 +0800
@@ -94,7 +94,7 @@
 	$(CXX_COMMAND) -o $@ -DESTLIBDIR=\"$(EST_HOME)/lib\" $($*_SRC)
 
 $(ALL_EXECS) : % : $(LIBDEPS) %_main.o 
-	$(strip $(LINK_COMMAND) -o $@ $@_main.o $(LIBS) $($(@:=_LIBS)))
+	$(strip $(LINK_COMMAND) -fPIE -Wl,-pie -o $@ $@_main.o $(LIBS) $($(@:=_LIBS)))
 
 .make_execs : $(ALL_EXECS) 
 
diff -Nur a/src/main/Makefile b/src/main/Makefile
--- a/src/main/Makefile	2023-06-06 14:34:57.216951580 +0800
+++ b/src/main/Makefile	2023-06-06 15:14:54.948951580 +0800
@@ -50,13 +50,13 @@
 ETCDIR=$(TOP)/lib/etc/$(SYSTEM_TYPE)
 
 festival: festival_main.o $(LIBDEPS)
-	$(LINK_COMMAND) -o festival festival_main.o $(LIBS)
+	$(LINK_COMMAND) -fPIE -Wl,-pie -o festival festival_main.o $(LIBS)
 
 festival_client: festival_client.o $(REQUIRED_LIBDEPS)
-	$(LINK_COMMAND) -o festival_client festival_client.o $(LIBS)
+	$(LINK_COMMAND) -fPIE -Wl,-pie -o festival_client festival_client.o $(LIBS)
 
 $(ETCDIR)/audsp: $(ETCDIR)/.made audsp.o $(LIBDEPS)
-	$(LINK_COMMAND) -o $(ETCDIR)/audsp audsp.o $(LIBS)
+	$(LINK_COMMAND) -fPIE -Wl,-pie -o $(ETCDIR)/audsp audsp.o $(LIBS)
 
 # Can't just rely on the dir as it gets updated with new files
 # check for the data of a file created in etcdir
