libsepol: set PREFIX to generate proper .pc file
PATCH 1/1 libsepol: set PREFIX to generate proper .pc file
Signed-off-by Marcus Folkesson <[email protected]>
--- package/libsepol/libsepol.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
package/libsepol/libsepol.mk +3 -1
@@ -19,10 +19,11 @@ ifeq ($(BR2_STATIC_LIBS),y) LIBSEPOL_MAKE_FLAGS += STATIC=1 endif +# DESTDIR is needed during the compile to compute library and header paths. define LIBSEPOL_BUILD_CMDS # DESTDIR is needed during the compile to compute library and # header paths. - $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(LIBSEPOL_MAKE_FLAGS) DESTDIR=$(STAGING_DIR) + $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(LIBSEPOL_MAKE_FLAGS) DESTDIR=$(STAGING_DIR) PREFIX=/usr endef define LIBSEPOL_INSTALL_STAGING_CMDS
@@ -33,6 +34,7 @@ define LIBSEPOL_INSTALL_TARGET_CMDS $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) install $(LIBSEPOL_MAKE_FLAGS) DESTDIR=$(TARGET_DIR) endef +# DESTDIR is needed during the compile to compute library and header paths. HOST_LIBSEPOL_MAKE_ENV = \ $(HOST_MAKE_ENV) \ DESTDIR=$(HOST_DIR) \
Signature · 1 line
2.15.1
PATCH 1/1 libsepol: set PREFIX to generate proper .pc file
Marcus,
Quoted 1 line · Marcus Folkesson
Signed-off-by Marcus Folkesson <[email protected]>
I tested test-pkg with the following as checkpolicy depends on libsepol/libselinux:
BR2_PACKAGE_HOST_CHECKPOLICY=y BR2_PACKAGE_CHECKPOLICY=y
BR2_PACKAGE_LIBSEMANAGE=y
Tested-by Matt Weber <[email protected]>