diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | README.cdn-X | 23 | ||||
-rw-r--r-- | automake/compile.am | 4 |
3 files changed, 23 insertions, 10 deletions
@@ -1,3 +1,9 @@ +2001-04-26 Ralf Corsepius <corsepiu@faw.uni-ulm.de> + + * README.cdn-X: Update. + * automake/compile.am: Remove -ansi -fasm from CFLAGS_DEFAULT, add + @CPPFLAGS@ to CPPFLAGS. + 2001-04-20 Eric Valette <valette@crf.canon.fr> * aclocal/check-rdbg.m4: Added check to determine which PowerPC diff --git a/README.cdn-X b/README.cdn-X index 4f514e578f..d238bebfb7 100644 --- a/README.cdn-X +++ b/README.cdn-X @@ -13,6 +13,7 @@ Interested readers might want to read Ian Lance Taylor's article at http://www.airs.com/ian/configure for underlaying details and working principles. + 2. RTEMS -------- Example: Building RTEMS for sparc-rtems under i386-pc-linux-gnu to be hosted @@ -26,7 +27,7 @@ on a i386-cygwin platform. We further on assume these to be installed to these locations: /opt/rtems .. linux cross sparc-rtems toolchain -/opt/i386-cygwin .. linux cross i386-cygwin cross toolchain +/opt/cygwin .. linux cross i386-cygwin cross-toolchain /usr .. linux native toolchain and further tools. 2.2 Building sparc-rtems @@ -37,12 +38,12 @@ mkdir build cd build <path>/rtems/configure [options] \ --target=sparc-rtems \ ---prefix=/opt/i386-cygwin/rtems/sparc-rtems +--prefix=/opt/cygwin/rtems/sparc-rtems make make install -This will build a standard sparc-rtems RTEMS to the given PREFIX. - +This will build a standard sparc-rtems RTEMS and install it to the given +PREFIX. 2.3 Building i386-cygwin host support ------------------------------------- @@ -55,7 +56,13 @@ cd host --target=sparc-rtems \ --build=`<path>/rtems/config.guess` \ --host=i386-cygwin \ ---prefix=/opt/i386-cygwin/rtems +--prefix=/opt/cygwin/rtems +make +make install + +This will build RTEMS host-tools for i386-cygwin and install it to the given +PREFIX. + 3. Known issues --------------- @@ -65,11 +72,11 @@ to require additional work. Do not expect this to work. * The configure scripts expect to find a native c-compiler called "cc". If your host doesn't have such a "cc" (e.g. Cygwin) or has a non-functional -"cc" (eg. Solaris) try introducing a symlink <functional-cc> -> cc. -(Eg. ln -s <path-to>/gcc /opt/rtems/bin/cc) and make sure this cc can be +"cc" (eg. Solaris) try introducing a symlink <functional-cc> -> cc +(E.g.: ln -s <path-to>/gcc /opt/rtems/bin/cc) and make sure this cc can be found on $PATH. -* It will *not* work for all targets requiring BSP-specific host-tools +* It will *not* work for all BSPs requiring BSP-specific host-tools (Unfortunately, this comprizes i386-rtems/pcx86 and all powerpc BSPs). * Incomplete support for *_FOR_TARGET, *_FOR_HOST, *_FOR_BUILD environment diff --git a/automake/compile.am b/automake/compile.am index 916a136dbb..7c5bfc1899 100644 --- a/automake/compile.am +++ b/automake/compile.am @@ -47,7 +47,7 @@ if RTEMS_USE_GCC ## All the stuff below is specific to gcc -CFLAGS_DEFAULT=-g -Wall -ansi -fasm +CFLAGS_DEFAULT=-g -Wall if RTEMS_USE_GCC272 ## gcc <= 2.7.2 @@ -75,7 +75,7 @@ endif # RTEMS_USE_GCC DEFS = @DEFS@ -CPPFLAGS += $(CPU_DEFINES) $(CPU_CFLAGS) \ +CPPFLAGS += @CPPFLAGS@ $(CPU_DEFINES) $(CPU_CFLAGS) \ $(DEFINES) $(XCPPFLAGS) $(CPPFLAGS_GCC) CFLAGS = $(CFLAGS_DEFAULT) $(XCFLAGS) CXXFLAGS = $(CFLAGS_DEFAULT) $(XCXXFLAGS) |