Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] libsepol: set PREFIX to generate proper .pc file
@ 2018-01-06 14:53 Marcus Folkesson
  2018-01-07  4:34 ` Matthew Weber
  0 siblings, 1 reply; 2+ messages in thread
From: Marcus Folkesson @ 2018-01-06 14:53 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
---
 package/libsepol/libsepol.mk | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/package/libsepol/libsepol.mk b/package/libsepol/libsepol.mk
index c54c3bfc42..d94955023c 100644
--- a/package/libsepol/libsepol.mk
+++ b/package/libsepol/libsepol.mk
@@ -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) \
-- 
2.15.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH] libsepol: set PREFIX to generate proper .pc file
  2018-01-06 14:53 [Buildroot] [PATCH] libsepol: set PREFIX to generate proper .pc file Marcus Folkesson
@ 2018-01-07  4:34 ` Matthew Weber
  0 siblings, 0 replies; 2+ messages in thread
From: Matthew Weber @ 2018-01-07  4:34 UTC (permalink / raw)
  To: buildroot

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 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>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-01-07  4:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-06 14:53 [Buildroot] [PATCH] libsepol: set PREFIX to generate proper .pc file Marcus Folkesson
2018-01-07  4:34 ` Matthew Weber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox