don't confuse LD_LIBRARY_PATH (run time) with LIBRARY_PATH (link time)

This commit is contained in:
Urs Janssen 2013-02-19 14:41:58 +01:00
parent 0ad857c80e
commit 183b2ab14c

View File

@ -1954,8 +1954,8 @@ PUB_FUNC void tcc_set_environment(TCCState *s)
if(path != NULL) {
tcc_add_include_path(s, path);
}
path = getenv("LD_LIBRARY_PATH");
path = getenv("LIBRARY_PATH");
if(path != NULL) {
tcc_add_library_path(s, path);
}
}
}