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:
Nicolas Williams authored and David Tolnay committed 2015-08-13 09:08:37 -07:00
1 parent 68f84659f3
commit 10df52efed
1 file changed
+2 -2
+2 -2
View File
@@ -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;