]> code.ossystems Code Review - openembedded-core.git/commitdiff
gdb: Alias rpl_stat to stat() on musl
authorKhem Raj <raj.khem@gmail.com>
Mon, 20 Aug 2018 18:59:49 +0000 (11:59 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 21 Aug 2018 13:49:34 +0000 (14:49 +0100)
Use CPPFLAGS instead of CFLAGS since there is C++ compiler being used for somefiles

Fixes
gdb/gdbserver/../../../gdb-8.1.1/gdb/gdbserver/../common/common-utils.c:419: undefined reference to `rpl_stat'
| collect2: error: ld returned 1 exit status
| make[4]: *** [Makefile:414: libinproctrace.so] Error 1

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/gdb/gdb_8.1.1.bb

index 84ab08ce930e3332aa01d60d197d9e2ab5ed0c86..c6eac84dd8e181616caa5ad14b44a5f480bde550 100644 (file)
@@ -26,4 +26,4 @@ EOF
                chmod +x ${WORKDIR}/python
        fi
 }
-CFLAGS_append_libc-musl = " -Drpl_gettimeofday=gettimeofday"
+CPPFLAGS_append_libc-musl = " -Drpl_gettimeofday=gettimeofday -Drpl_stat=stat"