diff options
author | Nathan Rossi <nathan@nathanrossi.com> | 2017-02-21 23:17:28 +1000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-04 23:18:19 +0000 |
commit | 16c918126d01ec7fa0bb7338708d383c993e2757 (patch) | |
tree | 2121669e434d071a41d424b660e887dca5fba9f6 /meta/recipes-support/libgpg-error | |
parent | 105d82383174df0e77d22e2d5eefe62a1093edaa (diff) | |
download | poky-16c918126d01ec7fa0bb7338708d383c993e2757.tar.gz |
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>
Diffstat (limited to 'meta/recipes-support/libgpg-error')
-rw-r--r-- | meta/recipes-support/libgpg-error/libgpg-error_1.26.bb | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/meta/recipes-support/libgpg-error/libgpg-error_1.26.bb b/meta/recipes-support/libgpg-error/libgpg-error_1.26.bb index b9e3b0065c..090db1b49b 100644 --- a/meta/recipes-support/libgpg-error/libgpg-error_1.26.bb +++ b/meta/recipes-support/libgpg-error/libgpg-error_1.26.bb | |||
@@ -26,7 +26,10 @@ inherit autotools binconfig-disabled pkgconfig gettext | |||
26 | CPPFLAGS += "-P" | 26 | CPPFLAGS += "-P" |
27 | do_compile_prepend() { | 27 | do_compile_prepend() { |
28 | TARGET_FILE=linux-gnu | 28 | TARGET_FILE=linux-gnu |
29 | if [ ${TARGET_OS} != "linux" ]; then | 29 | if [ ${TARGET_OS} = "mingw32" ]; then |
30 | # There are no arch specific syscfg files for mingw32 | ||
31 | TARGET_FILE= | ||
32 | elif [ ${TARGET_OS} != "linux" ]; then | ||
30 | TARGET_FILE=${TARGET_OS} | 33 | TARGET_FILE=${TARGET_OS} |
31 | fi | 34 | fi |
32 | 35 | ||
@@ -42,8 +45,10 @@ do_compile_prepend() { | |||
42 | *) TUPLE=${TARGET_ARCH}-unknown-linux-gnu ;; | 45 | *) TUPLE=${TARGET_ARCH}-unknown-linux-gnu ;; |
43 | esac | 46 | esac |
44 | 47 | ||
45 | cp ${S}/src/syscfg/lock-obj-pub.$TUPLE.h \ | 48 | if [ -n "$TARGET_FILE" ]; then |
46 | ${S}/src/syscfg/lock-obj-pub.$TARGET_FILE.h | 49 | cp ${S}/src/syscfg/lock-obj-pub.$TUPLE.h \ |
50 | ${S}/src/syscfg/lock-obj-pub.$TARGET_FILE.h | ||
51 | fi | ||
47 | } | 52 | } |
48 | 53 | ||
49 | do_install_append() { | 54 | do_install_append() { |