Add ld flag to find library

This commit is contained in:
Bruce Hill 2024-03-10 00:05:32 -05:00
parent a33f730617
commit 7ad94e808d

2
tomo.c
View File

@ -87,7 +87,7 @@ int main(int argc, char *argv[])
if (getenv("LDLIBS"))
ldlibs = heap_strf("%s %s", ldlibs, getenv("LDLIBS"));
const char *ldflags = "-Wl,-rpath '-Wl,$ORIGIN'";
const char *ldflags = "-Wl,-rpath '-Wl,$ORIGIN' -L/usr/local/lib";
const char *cc = getenv("CC");
if (!cc) cc = "tcc";