diff options
author | Mattias Andrée <maandree@kth.se> | 2022-02-19 11:14:14 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2022-02-19 11:14:14 +0100 |
commit | 4549c33d65e330eec5752b258370ea14896d0763 (patch) | |
tree | d0cb26f60d939728ac7f34bfe0907a59dcb3f8a7 /base | |
parent | Fix new-c-proj (diff) | |
download | dotfiles-4549c33d65e330eec5752b258370ea14896d0763.tar.gz dotfiles-4549c33d65e330eec5752b258370ea14896d0763.tar.bz2 dotfiles-4549c33d65e330eec5752b258370ea14896d0763.tar.xz |
new-c-proj: Add -compatibility_version and -current_version of libs on MacOS
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rwxr-xr-x | base/new-c-proj | 2 |
1 files changed, 1 insertions, 1 deletions
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 |