diff options
Diffstat (limited to 'uclibc/Pkgfile')
-rw-r--r-- | uclibc/Pkgfile | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/uclibc/Pkgfile b/uclibc/Pkgfile index 74f9884..49b5d64 100644 --- a/uclibc/Pkgfile +++ b/uclibc/Pkgfile @@ -25,6 +25,7 @@ grep -v '<' | sort -k3 | tail -n 1" license=LGPL function build { + local UCLIBC_MAKE_OPTS= if [[ "$CROSS" = yes ]]; then UCLIBC_CROSS=${CHOST}- fi @@ -46,6 +47,12 @@ function build { # Installation dans un $prefix… standard ? sed -i -e "s:^RUNTIME_PREFIX=.*:RUNTIME_PREFIX=\"\":" .config sed -i -e "s:^DEVEL_PREFIX=.*:DEVEL_PREFIX=\"$prefix\":" .config + # XXX: Volé de Gentoo, mais insuffisant. Il faut voler plus de code + # pour que ça marche mieux. + for def in UCLIBC_HAS_IPV6 MALLOC_GLIBC_COMPAT DO_C99_MATH UCLIBC_HAS_{RPC,FULL_RPC,CTYPE_CHECKED,WCHAR,HEXADECIMAL_FLOATS,GLIBC_CUSTOM_PRINTF,FOPEN_EXCLUSIVE_MODE,GLIBC_CUSTOM_STREAMS,PRINTF_M_SPEC,FTW} UCLIBC_HAS_REENTRANT_RPC UCLIBC_HAS_GNU_GLOB PTHREADS_DEBUG_SUPPORT UCLIBC_HAS_TZ_FILE_READ_MANY UCLIBC_HAS_FENV UCLIBC_SUSV3_LEGACY UCLIBC_SUSV3_LEGACY_MACROS UCLIBC_HAS_PROGRAM_INVOCATION_NAME ; do + sed -i -e "s/^${def}=.*/${def}=y/;s/# ${def} is not set/${def}=y/" .config + done + yes "" | gmake oldconfig gmake CROSS=${UCLIBC_CROSS} DESTDIR=$PKG install } |