From 38d6189d4335bbcdc38f0c31cf769082b96f22fa Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 30 Mar 2025 15:41:37 -0400 Subject: Further support for .dylib files on mac by changing syntax for library imports to `use -lfoo` instead of `use foo.so` --- src/parse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/parse.c') diff --git a/src/parse.c b/src/parse.c index 0eba5d2a..5e2894f0 100644 --- a/src/parse.c +++ b/src/parse.c @@ -2487,14 +2487,14 @@ PARSER(parse_use) { int what; if (name[0] == '<' || ends_with(name, ".h")) { what = USE_HEADER; + } else if (starts_with(name, "-l")) { + what = USE_SHARED_OBJECT; } else if (ends_with(name, ".c")) { what = USE_C_CODE; } else if (ends_with(name, ".S") || ends_with(name, ".s")) { what = USE_ASM; } else if (starts_with(name, "./") || starts_with(name, "/") || starts_with(name, "../") || starts_with(name, "~/")) { what = USE_LOCAL; - } else if (ends_with(name, ".so")) { - what = USE_SHARED_OBJECT; } else { what = USE_MODULE; -- cgit v1.2.3