mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-01-09 19:27:42 +01:00
Create a relative symlink for .so if libdir and usrlibdir are the same
This commit is contained in:
parent
42601170ac
commit
5902730a03
6
Makefile
6
Makefile
@ -157,7 +157,13 @@ install: libs man
|
|||||||
done
|
done
|
||||||
install -m644 $(LIB_MANS) $(DESTDIR)/$(mandir)/man3
|
install -m644 $(LIB_MANS) $(DESTDIR)/$(mandir)/man3
|
||||||
install -m644 $(LIB_PKGCONFIG) $(DESTDIR)/$(pkgconfigdir)
|
install -m644 $(LIB_PKGCONFIG) $(DESTDIR)/$(pkgconfigdir)
|
||||||
|
ifeq ($(libdir),$(usrlibdir))
|
||||||
|
# If both dirs are the same, do a relative symlink.
|
||||||
|
ln -sf $(LIB_SHARED) $(DESTDIR)/$(usrlibdir)/$(LIB_SHARED_SO)
|
||||||
|
else
|
||||||
|
# Otherwise, do an absolute one.
|
||||||
ln -sf $(libdir)/$(LIB_SHARED) $(DESTDIR)/$(usrlibdir)/$(LIB_SHARED_SO)
|
ln -sf $(libdir)/$(LIB_SHARED) $(DESTDIR)/$(usrlibdir)/$(LIB_SHARED_SO)
|
||||||
|
endif
|
||||||
ln -sf $(LIB_SHARED) $(DESTDIR)/$(libdir)/$(LIB_SONAME)
|
ln -sf $(LIB_SHARED) $(DESTDIR)/$(libdir)/$(LIB_SONAME)
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
|
Loading…
Reference in New Issue
Block a user