Browse Source

glibc: fix Mac OS build

Make sure to use a case-sensitive file system and a mount point with no
spaces!
pull/10/head
Andrew Waterman 12 years ago
parent
commit
9df2db4c55
  1. 1
      .gitignore
  2. 11
      README.md
  3. 12
      patches/glibc

1
.gitignore

@ -1,2 +1,3 @@
autom4te.cache
build
.DS_Store

11
README.md

@ -20,6 +20,17 @@ Contributors
- Matt Thomas
- ultraembedded (github id)
### Prerequisites
Several standard packages are needed to build the toolchain. On Ubuntu,
executing the following command should suffice:
$ sudo apt-get install autoconf automake autotools-dev libmpc-dev libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo patchutils
On Mac OS, the source and build directories must live in a case-sensitive file
system. The simplest approach is to create and mount a new disk image with
that property. Make sure that the mount point does not contain spaces.
### Installation (Newlib)
To build the Newlib cross-compiler, pick an install path. If you choose,

12
patches/glibc

@ -18,3 +18,15 @@
# Configuration Library=version Earliest symbol set (optional)
# ------------- --------------- ------------------------------
--- original-glibc/sunrpc/rpc_main.c
+++ glibc/sunrpc/rpc_main.c
@@ -38,7 +38,9 @@
#include <stdio.h>
#include <string.h>
#include <unistd.h>
+#ifndef __APPLE__
#include <libintl.h>
+#endif
#include <locale.h>
#include <ctype.h>
#include <sys/types.h>

Loading…
Cancel
Save