libsemanage: set PREFIX to generate proper .pc file

Message ID 20180106145319.3161-1-marcus.folkesson@gmail.com
State Superseded
Headers show
Series
  • libsemanage: set PREFIX to generate proper .pc file
Related show

Commit Message

Marcus Folkesson Jan. 6, 2018, 2:53 p.m.
Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
---
 package/libsemanage/libsemanage.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Matthew Weber Jan. 7, 2018, 4:33 a.m. | #1
Marcus,

On Sat, Jan 6, 2018 at 8:53 AM, Marcus Folkesson
<marcus.folkesson@gmail.com> wrote:
> Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>

I tested with 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 <matt@thewebers.ws>

Patch

diff --git a/package/libsemanage/libsemanage.mk b/package/libsemanage/libsemanage.mk
index 829409f527..1d0a700fff 100644
--- a/package/libsemanage/libsemanage.mk
+++ b/package/libsemanage/libsemanage.mk
@@ -13,10 +13,11 @@  LIBSEMANAGE_INSTALL_STAGING = YES
 
 LIBSEMANAGE_MAKE_OPTS = $(TARGET_CONFIGURE_OPTS)
 
+# DESTDIR is needed during the compile to compute library and header paths.
 define LIBSEMANAGE_BUILD_CMDS
 	# DESTDIR is needed during the compile to compute library and
 	# header paths.
-	$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(LIBSEMANAGE_MAKE_OPTS) DESTDIR=$(STAGING_DIR) all
+	$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(LIBSEMANAGE_MAKE_OPTS) DESTDIR=$(STAGING_DIR) PREFIX=/usr all
 endef
 
 define LIBSEMANAGE_INSTALL_STAGING_CMDS