diff options
Diffstat (limited to 'vars')
-rw-r--r-- | vars/pkgconf_host.vars | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/vars/pkgconf_host.vars b/vars/pkgconf_host.vars index 0f345906..9f73c7f6 100644 --- a/vars/pkgconf_host.vars +++ b/vars/pkgconf_host.vars @@ -11,7 +11,13 @@ pkg_pkgconf_host_install_make_post() { if [ -z "\${PREFIX_NATIVE}" ]; then PREFIX_NATIVE="${PREFIX_NATIVE}"; fi; -"\$(dirname "\${0}")"/pkgconf --define-variable=prefix="\${PREFIX_NATIVE%/}/" --keep-system-cflags "\${@}"; +if [ "\${#}" -eq 1 ]\ +&& [ "x\${1}" = "x--version" ]; then + "\$(dirname "\${0}")"/pkgconf --version; + +else + "\$(dirname "\${0}")"/pkgconf --define-variable=prefix="\${PREFIX_NATIVE%/}/" --keep-system-cflags "\${@}"; +fi; EOF chmod +x "${PKG_DESTDIR}/bin/${PKG_TARGET}-pkg-config"; ex_rtl_fileop rm "${PKG_DESTDIR}/bin/pkg-config"; |