[Buildroot] [PATCH] libselinux: set PREFIX to generate proper .pc file
Marcus Folkesson
marcus.folkesson at gmail.com
Sat Jan 6 14:52:49 UTC 2018
Signed-off-by: Marcus Folkesson <marcus.folkesson at 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
More information about the buildroot
mailing list