From 493e4c612849f4587d9e0e3c6b2cf65d6b73b3bd Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Tue, 13 Sep 2011 10:16:08 +0200 Subject: [PATCH] glibc: fixed build of additional ABIs by creating an empty stubs header file for each ABI if needed --- base/glibc/glibc.conf | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/base/glibc/glibc.conf b/base/glibc/glibc.conf index 95cf64c83..1101618d7 100644 --- a/base/glibc/glibc.conf +++ b/base/glibc/glibc.conf @@ -21,6 +21,18 @@ pkg_glibc_postmake_headers() { touch $root$includedir/bits/stdio_lim.h [ -e $root$includedir/gnu/stubs.h ] || touch $root$includedir/gnu/stubs.h + + # on multilib enabled builds create a stubs header file for each ABI + # TODO + # check if that approach is the right one or if we only have to + # create an empty stubs header for each additional ABI besides + # the default ABI + if [ "$SDECFG_MULTILIB" == 1 ] ; then + for x in $arch_abis; do + [ -e $root$includedir/gnu/stubs-$x.h ] || + touch $root$includedir/gnu/stubs-$x.h + done + fi } # overwrite prefix to not point to the tools, but the real root for the headers