summaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1994-11-07 16:02:15 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1994-11-07 16:02:15 +0000
commite5e1421a7c17891a786221e745a8c156e3361a44 (patch)
tree599dafeeca327d7900924cb35dc0e5a83c5d4927 /gcc/gcc.c
parent832db38ba61ebb742b29e9a2b3c51c0a55f236ea (diff)
downloadgcc-e5e1421a7c17891a786221e745a8c156e3361a44.tar.gz
(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
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r--gcc/gcc.c4
1 files changed, 2 insertions, 2 deletions
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);