diff options
author | Alexey Neyman <stilor@att.net> | 2017-10-01 01:47:35 (GMT) |
---|---|---|
committer | Alexey Neyman <stilor@att.net> | 2017-10-01 01:47:35 (GMT) |
commit | ca45a8f9abd672189dbef5bcb242ac465df7b0f6 (patch) | |
tree | bf0c6d296987c2e21b9ca77e1532c9fb8c5bdb96 /scripts/build/companion_libs/200-libelf.sh | |
parent | 4c321260b2a144bf143d44bb1e1c01238bdc2a9e (diff) |
Add -D__GLIBC__ to target CFLAGS
... when using musl to compile strace.
Also, honor CT_TARGET_CFLAGS in scripts compiling target libs/binaries.
Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'scripts/build/companion_libs/200-libelf.sh')
-rw-r--r-- | scripts/build/companion_libs/200-libelf.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/build/companion_libs/200-libelf.sh b/scripts/build/companion_libs/200-libelf.sh index d1ac0b4..5f1a8d7 100644 --- a/scripts/build/companion_libs/200-libelf.sh +++ b/scripts/build/companion_libs/200-libelf.sh @@ -81,6 +81,7 @@ do_libelf_for_target() { libelf_opts+=( "destdir=${CT_SYSROOT_DIR}" ) libelf_opts+=( "host=${CT_TARGET}" ) + libelf_opts+=( "cflags=${CT_TARGET_CFLAGS}" ) libelf_opts+=( "prefix=${prefix}" ) libelf_opts+=( "shared=${CT_SHARED_LIBS}" ) do_libelf_backend "${libelf_opts[@]}" |