Currently the DESTDIR variable is not used correctly which leads to
bogus RUNPATH entries.
https://www.gnu.org/prep/standards/html_node/DESTDIR.html
ifeq ($(enable_stow),yes)
stow_pkg_dir := $(prefix)/pkgs
- INSTALLDIR ?= $(DESTDIR)/$(stow_pkg_dir)/$(project_name)-$(project_ver)
+ INSTALLDIR ?= $(DESTDIR)$(stow_pkg_dir)/$(project_name)-$(project_ver)
else
- INSTALLDIR ?= $(DESTDIR)/$(prefix)
+ INSTALLDIR ?= $(DESTDIR)$(prefix)
endif
install_hdrs_dir := $(INSTALLDIR)/include/$(project_name)