diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2020-01-01 10:42:09 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-01 10:42:09 +0000 |
| commit | e9e2ab240db12da856876ebfb98c89781edb8dd2 (patch) | |
| tree | d35b3d3c335054ee9d19bfa78af35bc7447c77f5 | |
| parent | 978d7fcb999181bc04bb612d19f514d67a823976 (diff) | |
| parent | 842281ddd37fa5bcd27251e8e739ea58a3d0db4b (diff) | |
Merge pull request #528 from oskarnp/foreign-dylib-fix
Fix dylib foreign import
| -rw-r--r-- | src/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 61ffd9eb7..d3c0c9d5c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1457,7 +1457,7 @@ int main(int arg_count, char const **arg_ptr) { lib_str = gb_string_append_fmt(lib_str, " %.*s ", LIT(lib)); } else if (string_ends_with(lib, str_lit(".dylib"))) { // dynamic lib - lib_str = gb_string_append_fmt(lib_str, " -l%.*s ", LIT(lib)); + lib_str = gb_string_append_fmt(lib_str, " %.*s ", LIT(lib)); } else { // dynamic or static system lib, just link regularly searching system library paths lib_str = gb_string_append_fmt(lib_str, " -l%.*s ", LIT(lib)); |