From 7ad94e808d2eb1752e85021237893a0c11d391ba Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 10 Mar 2024 00:05:32 -0500 Subject: [PATCH] Add ld flag to find library --- tomo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tomo.c b/tomo.c index 631e081..c7cbd3f 100644 --- a/tomo.c +++ b/tomo.c @@ -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";