From 4549c33d65e330eec5752b258370ea14896d0763 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 19 Feb 2022 11:14:14 +0100 Subject: new-c-proj: Add -compatibility_version and -current_version of libs on MacOS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- base/new-c-proj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/new-c-proj b/base/new-c-proj index 48dc599..982144f 100755 --- a/base/new-c-proj +++ b/base/new-c-proj @@ -145,7 +145,7 @@ if printf '%s\n' "$1" | grep '^lib' >/dev/null 2>/dev/null; then cat <<-EOF | sed 's/x\t/\t/g' > mk/macos.mk LIBEXT = dylib - LIBFLAGS = -dynamiclib + LIBFLAGS = -dynamiclib -Wl,-compatibility_version,\$(LIB_MAJOR) -Wl,-current_version,\$(LIB_VERSION) LIBMAJOREXT = \$(LIB_MAJOR).\$(LIBEXT) LIBMINOREXT = \$(LIB_VERSION).\$(LIBEXT) EOF -- cgit v1.2.3-70-g09d2