mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
597eb07e00
Reported by sternenseemann as a failure on darwin: https://github.com/NixOS/nixpkgs/pull/141541#discussion_r739634263 Instead of emulating symlink creation in `.nix` file let's create them in Makefile.build directly in a way that can be upstreamed.
14 lines
780 B
Diff
14 lines
780 B
Diff
--- 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
|