summaryrefslogtreecommitdiff
path: root/gcc/tlink.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tlink.c')
-rw-r--r--gcc/tlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tlink.c b/gcc/tlink.c
index 50206472eba..969c75d0aa6 100644
--- a/gcc/tlink.c
+++ b/gcc/tlink.c
@@ -283,7 +283,7 @@ tlink_execute (const char *prog, char **argv, const char *outname,
{
struct pex_obj *pex;
- pex = collect_execute (prog, argv, outname, errname);
+ pex = collect_execute (prog, argv, outname, errname, PEX_LAST | PEX_SEARCH);
return collect_wait (prog, pex);
}