aboutsummaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2022-02-19 11:14:14 +0100
committerMattias Andrée <maandree@kth.se>2022-02-19 11:14:14 +0100
commit4549c33d65e330eec5752b258370ea14896d0763 (patch)
treed0cb26f60d939728ac7f34bfe0907a59dcb3f8a7 /base
parentFix new-c-proj (diff)
downloaddotfiles-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 'base')
-rwxr-xr-xbase/new-c-proj2
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