From e5e1421a7c17891a786221e745a8c156e3361a44 Mon Sep 17 00:00:00 2001 From: kenner Date: Mon, 7 Nov 1994 16:02:15 +0000 Subject: (process_command): Ignore LIBRARY_PATH and LPATH if cross-compiler. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@8396 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/gcc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc/gcc.c') diff --git a/gcc/gcc.c b/gcc/gcc.c index f9ab8f4c964..8de0b0964be 100644 --- a/gcc/gcc.c +++ b/gcc/gcc.c @@ -2409,7 +2409,7 @@ process_command (argc, argv) } temp = getenv ("LIBRARY_PATH"); - if (temp) + if (temp && ! cross_compile) { char *startp, *endp; char *nstore = (char *) alloca (strlen (temp) + 3); @@ -2441,7 +2441,7 @@ process_command (argc, argv) /* Use LPATH like LIBRARY_PATH (for the CMU build program). */ temp = getenv ("LPATH"); - if (temp) + if (temp && ! cross_compile) { char *startp, *endp; char *nstore = (char *) alloca (strlen (temp) + 3); -- cgit v1.2.1