Changeset 04e4829 in rtems for c/src/lib/configure.in


Ignore:
Timestamp:
Jul 6, 2000, 2:04:29 PM (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
42ed300
Parents:
c2f39fff
Message:

Patch rtems-rc-20000626-1.diff from Ralf Corsepius <corsepiu@…>.
Comments follow:

Building linux/posix fails due to including lib/include/sys/cdefs.h
instead of linux's sys/cdefs.h.
AFAIS, this sys/cdefs.h is specific to newlib and should probably
not be used on any unix host.

Therefore, I changed the relevant Makefile.am/configure.in to
condionally install sys/cdefs.h only if newlib is present.

This triggered another bug inside of the newlib-check for one of
RTEMS target's (Unfortunately I can't remember which - mips/i960 ?
... one of the more exotic ...), for which int func() isn't
identical to void func().

Note: This patch needs to be tested under Cygwin and Solaris. I am
particularily unsure about Cygwin/posix, as it applies a different
version newlib which must not trigger RTEMS newlib check (it is
supposed to fail) and if it may need RTEMS's sys/cdefs.h.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/configure.in

    rc2f39fff r04e4829  
    2525RTEMS_PROG_CC_FOR_TARGET
    2626RTEMS_CANONICALIZE_TOOLS
    27 
     27RTEMS_CHECK_NEWLIB
    2828RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
    2929RTEMS_CHECK_MULTIPROCESSING(RTEMS_BSP)
    3030RTEMS_CHECK_NETWORKING(RTEMS_BSP)
    3131
    32 AM_CONDITIONAL(UNIX,test "$RTEMS_CPU" = "unix")
     32AM_CONDITIONAL(UNIX,test x"$RTEMS_CPU" = x"unix")
     33AM_CONDITIONAL(NEWLIB,test x"$RTEMS_USE_NEWLIB" = x"yes")
    3334
    3435# find all the CPU dependent library Makefiles
Note: See TracChangeset for help on using the changeset viewer.