diff options
author | Thomas Schwinge <thomas@schwinge.name> | 2011-10-07 16:17:56 +0200 |
---|---|---|
committer | Thomas Schwinge <thomas@schwinge.name> | 2011-10-07 16:17:56 +0200 |
commit | 2114e5595b9f6f94efcf66d405003be31b5b8eed (patch) | |
tree | e3c0511285968c873f9649f5e02fe83449a7f5a1 | |
parent | aa0221b4407b508c40d93376decb98a7a37a4ae0 (diff) |
Install libpthread's header files before building glibc.
-rwxr-xr-x | cross-gnu | 24 |
1 files changed, 22 insertions, 2 deletions
@@ -162,7 +162,7 @@ fi && install && -# Install the GNU Hurd's header files. +# Install the GNU Hurd's core libraries' header files. mkdir -p "$HURD_SRC".obj && cd "$HURD_SRC".obj && @@ -180,12 +180,32 @@ fi && prefix="$SYS_ROOT" \ no_deps=t \ install-headers && -# Below, we will reconfigure for allowing to build the pthreads library. +# Below, we will reconfigure for allowing to build libpthread. if grep -q '^CC = gcc$' config.make then rm config.status else : fi && +mkdir -p "$LIBPTHREAD_SRC".obj && +cd "$LIBPTHREAD_SRC".obj && +if ./config.status --version > /dev/null 2>&1; then :; else + # `$TARGET-gcc' doesn't work yet (to satisfy the Autoconf checks), but isn't + # needed either. + CC=gcc \ + "$LIBPTHREAD_SRC"/configure \ + --host="$TARGET" \ + --prefix= \ + ac_cv_lib_ihash_hurd_ihash_create=yes +fi && +"$MAKE" \ + DESTDIR="$SYS_ROOT" \ + install-data-local-headers && +# Below, we will reconfigure for allowing to build libpthread. +if grep -q '^CC = gcc$' Makefile +then rm config.status +else : +fi && + # Install the GNU C Library. |