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

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

diff --git a/package/libselinux/libselinux.mk b/package/libselinux/libselinux.mk
index 8ac8000de5..bf33da7f75 100644
--- a/package/libselinux/libselinux.mk
+++ b/package/libselinux/libselinux.mk
@@ -43,17 +43,19 @@ LIBSELINUX_MAKE_INSTALL_TARGETS += install-pywrap
 # dependencies are broken and result in file truncation errors at link
 # time if the Python bindings are built through the same make
 # invocation as the rest of the library.
+# DESTDIR is needed during the compile to compute library and header paths.
 define LIBSELINUX_BUILD_PYTHON_BINDINGS
 	$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
 		$(LIBSELINUX_MAKE_OPTS) DESTDIR=$(STAGING_DIR) swigify pywrap
 endef
 endif # python || python3
 
+# DESTDIR is needed during the compile to compute library and header paths.
 define LIBSELINUX_BUILD_CMDS
 	# DESTDIR is needed during the compile to compute library and
 	# header paths.
 	$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
-		$(LIBSELINUX_MAKE_OPTS) DESTDIR=$(STAGING_DIR) all
+		$(LIBSELINUX_MAKE_OPTS) DESTDIR=$(STAGING_DIR) PREFIX=/usr all
 	$(LIBSELINUX_BUILD_PYTHON_BINDINGS)
 endef
 
-- 
2.15.1

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

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

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-06 14:52 [Buildroot] [PATCH] libselinux: set PREFIX to generate proper .pc file Marcus Folkesson
2018-01-07  4:34 ` Matthew Weber
2018-01-07 14:16 ` Thomas Petazzoni
2018-01-07 16:24   ` Marcus Folkesson
2018-01-07 16:34     ` Thomas Petazzoni
2018-01-07 16:51       ` Marcus Folkesson
2018-01-07 19:40         ` Thomas Petazzoni

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