about summary refs log tree commit diff
path: root/pkgs/applications/science/logic/yices/linux-no-ldconfig.patch
blob: bad3da6ad4a28fdfaba62dd6cd8c988f9f49c4c5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- a/Makefile.build
+++ b/Makefile.build
@@ -474,8 +474,9 @@ install-darwin: install-default
 install-solaris: install-default
 	$(LDCONFIG) -n $(DESTDIR)$(libdir) && (cd $(DESTDIR)$(libdir) && $(LN_S) -f libyices.so.$(YICES_VERSION) libyices.so)
 
+# avoid ldconfig as it's not present on musl
 install-linux install-unix: install-default
-	$(LDCONFIG) -n $(DESTDIR)$(libdir) && (cd $(DESTDIR)$(libdir) && $(LN_S) -f libyices.so.$(YICES_VERSION) libyices.so)
+	(cd $(DESTDIR)$(libdir) && $(LN_S) -f libyices.so.$(YICES_VERSION) libyices.so.$(MAJOR).$(MINOR) && $(LN_S) -f libyices.so.$(MAJOR).$(MINOR) libyices.so)
 
 # on FreeBSD: the library file is libyices.so.X.Y and ldconfig does not take -n
 # TODO: fix this. We must also create a symbolic link: libyices.so.X in libdir