https://sourceware.org/bugzilla/show_bug.cgi?id=18509
--- Comment #12 from Nick Clifton <nickc at redhat dot com> --- Hi Yuhang, You need to set LD_LIBRARY_PATH rather than LDFLAGS in order to locate libraries when executables are run. So what you need to do is to either set LD_LIBRARY_PATH in your environment, or else add it to the site.exp file pointed to be your DEJAGNU environment variable. Ie, something like this: % export DEJAGNU=`pwd`/site.exp % cat site.exp # Make sure we look in the right place for the board description files. if ![info exists boards_dir] { set boards_dir {} } # Determine target machines for all known targets verbose "Global Config File: target_triplet is $target_triplet" 2 global target_list # Note the following list is alpha sorted in order to help maintain it. case "$target_triplet" in { { i*86-pc-* x86_64-pc-* native i*86-redha4t-linux-gnu } { set LD_LIBRARY_PATH "/usr/local/lib:/Scr/scr-test-steven/install/zlib/1.2.8/lib/" set target_list "unix" } } I hope that this helps. Cheers Nick -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils