libgpg-error: Don't replace the syscfg header for mingw32
For mingw32 targets do not attempt to replace the syscfg/lock-obj-pub.*.h as for mingw32 there are no arch specific headers that are included in the libgpg-error source. (From OE-Core rev: 45a5253a6c8d3e394c1a74491b95fc63a1616646) Signed-off-by: Nathan Rossi <nathan@nathanrossi.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
105d823831
commit
16c918126d
|
@ -26,7 +26,10 @@ inherit autotools binconfig-disabled pkgconfig gettext
|
||||||
CPPFLAGS += "-P"
|
CPPFLAGS += "-P"
|
||||||
do_compile_prepend() {
|
do_compile_prepend() {
|
||||||
TARGET_FILE=linux-gnu
|
TARGET_FILE=linux-gnu
|
||||||
if [ ${TARGET_OS} != "linux" ]; then
|
if [ ${TARGET_OS} = "mingw32" ]; then
|
||||||
|
# There are no arch specific syscfg files for mingw32
|
||||||
|
TARGET_FILE=
|
||||||
|
elif [ ${TARGET_OS} != "linux" ]; then
|
||||||
TARGET_FILE=${TARGET_OS}
|
TARGET_FILE=${TARGET_OS}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -42,8 +45,10 @@ do_compile_prepend() {
|
||||||
*) TUPLE=${TARGET_ARCH}-unknown-linux-gnu ;;
|
*) TUPLE=${TARGET_ARCH}-unknown-linux-gnu ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
cp ${S}/src/syscfg/lock-obj-pub.$TUPLE.h \
|
if [ -n "$TARGET_FILE" ]; then
|
||||||
${S}/src/syscfg/lock-obj-pub.$TARGET_FILE.h
|
cp ${S}/src/syscfg/lock-obj-pub.$TUPLE.h \
|
||||||
|
${S}/src/syscfg/lock-obj-pub.$TARGET_FILE.h
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install_append() {
|
do_install_append() {
|
||||||
|
|
Loading…
Reference in New Issue