]> code.ossystems Code Review - openembedded-core.git/commit
gettext_0.16.1: add -lrt and -lpthread to LDFLAGS for uclibc builds
authorAndre McCurdy <armccurdy@gmail.com>
Thu, 6 Aug 2015 00:36:50 +0000 (17:36 -0700)
committerJoshua Lock <joshua.lock@collabora.co.uk>
Thu, 5 Nov 2015 22:04:15 +0000 (22:04 +0000)
commit28f4d6d6e926be2f5efc098eb599200301f1ab2c
treea6c2958a61f01147dda906fc2e54bd612c298a51
parent66e229474271a4ae6df8b5377bb2f9fe8175fb64
gettext_0.16.1: add -lrt and -lpthread to LDFLAGS for uclibc builds

Fix linker errors due to posix_spawnp etc being in librt for uclibc.

 | sh4-rdk-linux-uclibc-libtool: link: sh4-rdk-linux-uclibc-gcc -ml -m4 --sysroot=/build-foo/tmp/sysroots/foo -O2 -pipe -g -feliminate-unused-debug-types -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -o .libs/test-names test-names.o  libuniname.a ../gnulib-lib/.libs/libgettextlib.so /build-foo/tmp/work/sh4-rdk-linux-uclibc/gettext/0.16.1-r6/build/gettext-tools/intl/.libs/libintl.so -lc /build-foo/tmp/sysroots/foo/usr/lib/libiconv.so
 | ../gnulib-lib/.libs/libgettextlib.so: undefined reference to `posix_spawnp'
 | ../gnulib-lib/.libs/libgettextlib.so: undefined reference to `posix_spawn_file_actions_adddup2'
 | ../gnulib-lib/.libs/libgettextlib.so: undefined reference to `posix_spawn_file_actions_addopen'
 | ../gnulib-lib/.libs/libgettextlib.so: undefined reference to `posix_spawn_file_actions_addclose'
 | collect2: error: ld returned 1 exit status

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(From OE-Core master rev: d46333d)

Signed-off-by: Joshua Lock <joshua.lock@collabora.co.uk>
meta/recipes-core/gettext/gettext_0.16.1.bb