From c028a4bdc353dfa6700524e8d161e3a334369af1 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Fri, 29 Jan 2021 13:35:59 +0000 Subject: Add fake-pkg-config, because !@#$%^ kernel hardcoding --- bin/fake-pkg-config | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 bin/fake-pkg-config (limited to 'bin/fake-pkg-config') diff --git a/bin/fake-pkg-config b/bin/fake-pkg-config new file mode 100755 index 0000000..780407b --- /dev/null +++ b/bin/fake-pkg-config @@ -0,0 +1,19 @@ +#!/bin/sh + +exists () { + test -d "${OUTPUT}/build-build/opt/ncurses/include/$1" +} + +cflags () { + echo "-I${OUTPUT}/build-build/opt/ncurses/include -DKBUILD_NO_NLS -DCURSES_LOC=\"<${1}/ncurses.h>\"" +} + +libs () { + echo "-static -L${OUTPUT}/build-build/opt/ncurses/lib -l$1" +} + +case "$1" in + --exists) exists "$2" ;; + --cflags) cflags "$2" ;; + --libs) libs "$2" ;; +esac -- cgit v1.3.1