[uClibc]How to use uCLibc in a cross compile environement.

Thierry De Corte tdecorte at wavesat.com
Wed Apr 23 19:55:43 UTC 2003


You must also remove drand48_r.c erand48.c from the makefile...

After doing that, it works without problems...

Thierry

> Does applying this patch fix the problem for you?
>
>
> --- Makefile 22 Nov 2002 03:05:25 -0000 1.50
> +++ Makefile 23 Apr 2003 19:05:39 -0000
> @@ -54,12 +54,12 @@
>  MOBJ2=atexit.o on_exit.o __exit_handler.o exit.o
>  CSRC = abort.c getenv.c mkdtemp.c mktemp.c realpath.c mkstemp.c
mkstemp64.c \
>   rand.c random.c random_r.c setenv.c system.c div.c ldiv.c getpt.c \
> - ptsname.c grantpt.c unlockpt.c gcvt.c drand48.c drand48-iter.c \
> - drand48_r.c erand48.c erand48_r.c jrand48.c jrand48_r.c lrand48.c \
> + ptsname.c grantpt.c unlockpt.c gcvt.c drand48-iter.c \
> + drand48_r.c erand48.c jrand48.c jrand48_r.c lrand48.c \
>   lrand48_r.c mrand48.c mrand48_r.c nrand48.c nrand48_r.c rand_r.c \
>   srand48.c srand48_r.c calloc.c valloc.c
>  ifeq ($(UCLIBC_HAS_FLOATS),y)
> - CSRC += strtod.c strtof.c strtold.c
> + CSRC += strtod.c strtof.c strtold.c drand48.c erand48_r.c
>  endif
>  COBJS=$(patsubst %.c,%.o, $(CSRC))
>
>
>  -Erik
>
> --
> Erik B. Andersen             http://codepoet-consulting.com/
> --This message was written using 73% post-consumer electrons--
>



More information about the uClibc mailing list