build: Make sure SHLIBDIR respects PREFIX
PATCH 1/1 build: Make sure SHLIBDIR respects PREFIX
Not respecting PREFIX can pollute the environment in various build configurations. LIBDIR already respects it, so we may as well make SHLIBDIR respect PREFIX too. Fixes #494 on Github[1].
[1] https://github.com/SELinuxProject/selinux/issues/494
Signed-off-by Rahul Sandhu <[email protected]>
--- libselinux/src/Makefile | 2 +- libsepol/src/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
libselinux/src/Makefile +1 -1
@@ -10,7 +10,7 @@ PKG_CONFIG ?= pkg-config # Installation directories. PREFIX ?= /usr LIBDIR ?= $(PREFIX)/lib -SHLIBDIR ?= /lib +SHLIBDIR ?= $(PREFIX)/lib INCLUDEDIR ?= $(PREFIX)/include PYINC ?= $(shell $(PKG_CONFIG) --cflags $(PYPREFIX)) PYLIBS ?= $(shell $(PKG_CONFIG) --libs $(PYPREFIX))
libsepol/src/Makefile +1 -1
@@ -2,7 +2,7 @@ PREFIX ?= /usr INCLUDEDIR ?= $(PREFIX)/include LIBDIR ?= $(PREFIX)/lib -SHLIBDIR ?= /lib +SHLIBDIR ?= $(PREFIX)/lib RANLIB ?= ranlib CILDIR ?= ../cil
Signature · 1 line
2.50.1
Stephen Smalley
maintainerQuoted 6 lines · Rahul Sandhu
Not respecting PREFIX can pollute the environment in various build configurations. LIBDIR already respects it, so we may as well make SHLIBDIR respect PREFIX too. Fixes #494 on Github[1].
If you don't have usrmerge, this can produce the wrong result by default, i.e. installing shared libraries to /usr/lib instead of /lib.
Quoted 37 lines
Signed-off-by Rahul Sandhu <[email protected]>--- libselinux/src/Makefile | 2 +- libsepol/src/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)libselinux/src/Makefile +1
-1@@ -10,7 +10,7 @@ PKG_CONFIG ?= pkg-config # Installation directories. PREFIX ?= /usr LIBDIR ?= $(PREFIX)/lib -SHLIBDIR ?= /lib +SHLIBDIR ?= $(PREFIX)/lib INCLUDEDIR ?= $(PREFIX)/include PYINC ?= $(shell $(PKG_CONFIG) --cflags $(PYPREFIX)) PYLIBS ?= $(shell $(PKG_CONFIG) --libs $(PYPREFIX))libsepol/src/Makefile +1
-2@@ -2,7 +2,7 @@ PREFIX ?= /usr INCLUDEDIR ?= $(PREFIX)/include LIBDIR ?= $(PREFIX)/lib -SHLIBDIR ?= /lib +SHLIBDIR ?= $(PREFIX)/lib RANLIB ?= ranlib CILDIR ?= ../cil --2.50.1