浏览代码

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

Eric Andersen 24 年之前
父节点
当前提交
a9e5b24e67
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      extra/gcc-uClibc/gcc-uClibc.c

+ 2 - 2
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;
 	}