Make all global module paths absolute (fix #817)
This is part 1 of the fix for #817. The next commit is part 2.
This commit is contained in:
1 parent
68f84659f3
commit
10df52efed
1 file changed
+2
-2
@@ -232,12 +232,12 @@ int main(int argc, char* argv[]) {
|
||||
if (jv_get_kind(lib_search_paths) == JV_KIND_NULL)
|
||||
lib_search_paths = jv_array();
|
||||
if (argv[i][2] != 0) { // -Lname (faster check than strlen)
|
||||
lib_search_paths = jv_array_append(lib_search_paths, jv_string(argv[i]+2));
|
||||
lib_search_paths = jv_array_append(lib_search_paths, jq_realpath(jv_string(argv[i]+2)));
|
||||
} else if (i >= argc - 1) {
|
||||
fprintf(stderr, "-L takes a parameter: (e.g. -L /search/path or -L/search/path)\n");
|
||||
die();
|
||||
} else {
|
||||
lib_search_paths = jv_array_append(lib_search_paths, jv_string(argv[i+1]));
|
||||
lib_search_paths = jv_array_append(lib_search_paths, jq_realpath(jv_string(argv[i+1])));
|
||||
i++;
|
||||
}
|
||||
continue;
|
||||
|
||||
Reference in new issue
Block a user