Changeset 24166


Ignore:
Timestamp:
2010-11-28T14:55:56+01:00 (5 years ago)
Author:
hauke
Message:

coreutils: fix build with eglibc

Thank you sav for the patch. (closes #8304)

Location:
packages/utils/coreutils
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • packages/utils/coreutils/Makefile

    r24060 r24166  
    11# 
    2 # Copyright (C) 2008 OpenWrt.org 
     2# Copyright (C) 2008-2010 OpenWrt.org 
    33# 
    44# This is free software, licensed under the GNU General Public License v2. 
     
    1010PKG_NAME:=coreutils 
    1111PKG_VERSION:=8.7 
    12 PKG_RELEASE:=1 
     12PKG_RELEASE:=2 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
     
    6363endef 
    6464 
     65ifneq ($(CONFIG_USE_UCLIBC),) 
    6566CONFIGURE_VARS += \ 
    6667        gl_cv_func_mbrtowc_incomplete_state=yes \ 
     
    6869        gl_cv_func_wcrtomb_retval=yes \ 
    6970        ac_cv_type_pthread_spinlock_t=no 
     71else 
     72CONFIGURE_VARS += \ 
     73        gl_cv_func_mbrtowc_incomplete_state=yes \ 
     74        gl_cv_func_mbrtowc_retval=yes \ 
     75        gl_cv_func_wcrtomb_retval=yes 
     76endif 
    7077 
    7178CONFIGURE_ARGS += \ 
  • packages/utils/coreutils/patches/002-fix_compile_with_uclibc.patch

    r24061 r24166  
    11--- a/lib/pthread.in.h 
    22+++ b/lib/pthread.in.h 
    3 @@ -225,6 +225,7 @@ pthread_mutex_unlock (pthread_mutex_t *m 
     3@@ -225,6 +225,9 @@ 
    44  
    55 /* Approximate spinlocks with mutexes.  */ 
    66  
     7+#ifdef __UCLIBC__ 
    78+#define pthread_spinlock_t original_pthread_spinlock_t 
     9+#endif 
    810 typedef pthread_mutex_t pthread_spinlock_t; 
    911  
Note: See TracChangeset for help on using the changeset viewer.