From ea407d0a5ec21ee37cebfedbb0cdb9698a113e65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz?= Date: Wed, 25 Aug 2021 09:22:48 +0200 Subject: files/pkgconf: removed. files/pkgconf_host/bin/%[_target]-pkg-config: correctly set prefix. groups/100.native_tools.group:pkgconf:${PKG_INSTALL_FILES_V2}: updated. --- files/pkgconf_host/bin/%[_target]-pkg-config | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 files/pkgconf_host/bin/%[_target]-pkg-config (limited to 'files/pkgconf_host/bin') diff --git a/files/pkgconf_host/bin/%[_target]-pkg-config b/files/pkgconf_host/bin/%[_target]-pkg-config new file mode 100644 index 00000000..7351e62f --- /dev/null +++ b/files/pkgconf_host/bin/%[_target]-pkg-config @@ -0,0 +1,8 @@ +#!/bin/sh +PREFIX=""; [ ${PREFIX:="${0%/*}"} = "${0}" ] && PREFIX="."; PREFIX="${PREFIX:+${PREFIX}/}.."; +if [ "${#}" -eq 1 ]\ +&& [ "x${1}" = "x--version" ]; then + "${PREFIX}/bin/pkgconf" --version; +else + "${PREFIX}/bin/pkgconf" --define-variable=prefix="${PREFIX%/}/native" --keep-system-cflags "${@}"; +fi; -- cgit v1.2.3