diff --git a/tools/ps_analyze.sh b/tools/ps_analyze.sh
index e6445c1de065c4957ceb35c2c5d9a09c6f373623..a3b6fb2d13aed9d4c7ea8b0ceb95103fde08657c 100755
--- a/tools/ps_analyze.sh
+++ b/tools/ps_analyze.sh
@@ -1,4 +1,4 @@
-#!/bin/bash  
+#!/bin/bash
 #
 # ps_analyze.sh - analyze a program and transform it for peasoupification to prevent exploit.
 #
@@ -17,6 +17,7 @@ realpath() {
 
 init_globals()
 {
+
 	##################################################################################
 	# set default values for 
 	##################################################################################
@@ -81,6 +82,12 @@ init_globals()
 	# 
 	stepnum=0
 
+
+	#
+	# set library path for shared library builds
+	#
+	export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$SECURITY_TRANSFORMS_HOME/lib"
+
 }
 handle_alarm()
 {