don't confuse LD_LIBRARY_PATH (run time) with LIBRARY_PATH (link time)
authorUrs Janssen <urs@hq.tin.org>
Tue, 19 Feb 2013 13:41:58 +0000 (19 14:41 +0100)
committerUrs Janssen <urs@hq.tin.org>
Tue, 19 Feb 2013 13:41:58 +0000 (19 14:41 +0100)
libtcc.c

index 25d004c..3ef1682 100644 (file)
--- a/libtcc.c
+++ b/libtcc.c
@@ -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);
     }
-}
\ No newline at end of file
+}