From a9e5b24e67378acf2371b5e60e611f371f9716b6 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 5 Jul 2001 21:10:44 +0000 Subject: Don't change options on based on path -- use command line options or ENV variables only. The current behavior violates the principle of least surprise... -Erik --- extra/gcc-uClibc/gcc-uClibc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'extra') diff --git a/extra/gcc-uClibc/gcc-uClibc.c b/extra/gcc-uClibc/gcc-uClibc.c index a114160d5..719cf621c 100644 --- a/extra/gcc-uClibc/gcc-uClibc.c +++ b/extra/gcc-uClibc/gcc-uClibc.c @@ -132,11 +132,11 @@ int main(int argc, char **argv) ep = ""; } - if ((strstr(argv[0],"build") != 0) || (strstr(ep,"build") != 0)) { + if (strstr(ep,"build") != 0) { use_build_dir = 1; } - if ((strstr(argv[0],"rpath") != 0) || (strstr(ep,"rpath") != 0)) { + if (strstr(ep,"rpath") != 0) { use_rpath = 1; } -- cgit v1.2.3