From 560aae24e2aedf480676e5daf9c4c3e0eb62a120 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 29 Jan 2001 15:27:25 +0000 Subject: 2001-01-26 Ralf Corsepius * aclocal/enable-rtemsbsp.m4: Split out RTEMS_ENV_RTEMSBSP, RTEMS_ENV_RTEMSCPU. * aclocal/env-rtemsbsp.m4: New file for RTEMS_ENV_RTEMSBSP, add special treatment for GCC_SPECS. * aclocal/env-rtemscpu.m4: New file for RTEMS_ENV_RTEMSCPU, add special treatment for GCC_SPECS. * aclocal/bsp-enable-arg.m4: New file, introduce RTEMS_BSP_ARG_ENABLE. * aclocal/prog-cc.m4: Add AC_PROG_CPP, use build_os in GCCSED hack. * automake/compile.am: New treatment of CPP, GCCSPECS, use `..` instead of $(shell ..) for LIBC_LIB*. --- automake/compile.am | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) (limited to 'automake') diff --git a/automake/compile.am b/automake/compile.am index b618e0cb12..916a136dbb 100644 --- a/automake/compile.am +++ b/automake/compile.am @@ -54,21 +54,18 @@ if RTEMS_USE_GCC272 RTEMS_CPPFLAGS = -isystem $(PROJECT_INCLUDE) # default location of Standard C Library -LIBC_LIBC = $(shell $(CC) $(CPU_CFLAGS) -print-file-name=libc.a $(GCCSED)) -LIBC_LIBM = $(shell $(CC) $(CPU_CFLAGS) -print-file-name=libm.a $(GCCSED)) -LIBC_LIBGCC = $(shell $(CC) $(CPU_CFLAGS) -print-libgcc-file-name $(GCCSED)) +LIBC_LIBC = `$(CC) $(CPU_CFLAGS) -print-file-name=libc.a $(GCCSED)` +LIBC_LIBM = `$(CC) $(CPU_CFLAGS) -print-file-name=libm.a $(GCCSED)` +LIBC_LIBGCC = `$(CC) $(CPU_CFLAGS) -print-libgcc-file-name $(GCCSED)` ### FIXME: False if using multilibbed RTEMS LINK_LIBS_RTEMS = $(PROJECT_RELEASE)/lib/librtemsall$(LIBSUFFIX_VA) LINK_LIBS_GCC272 = $(LINK_LIBS_RTEMS) $(LIBC_LIBC) $(LIBC_LIBGCC) +GCCSPECS = else ## gcc >= 2.8.x -if RTEMS_CONFIG_PER_BSP -BSP_SPECS = -specs bsp_specs -qrtems -endif - -GCCSPECS = -B$(PROJECT_RELEASE)/lib/ $(BSP_SPECS) +GCCSPECS = $(GCC_SPECS) $(RTEMS_BSP_SPECS) endif else ## fall back to the old style compilers/*.cfg @@ -111,12 +108,6 @@ LDFLAGS=$(LDFLAGS_PROFILE) $(LDFLAGS_DEBUG) $(LD_PATHS:%=-L %) # Client compiler and support tools # -## HACK: specific to gcc -## FIXME: Do we call the correct CPP, why aren't -## CPPFLAGS and CFLAGS part of this call? -# CPP command to write file to standard output -CPP=$(CC) -E -ansi -w -Wp,-$$ - ARFLAGS=ruv # @@ -278,6 +269,8 @@ RTEMS_CFLAGS__V = $(RTEMS_CFLAGS_OPTIMIZE_V) CC = @CC@ $(GCCSPECS) CXX = @CXX@ $(GCCSPECS) +CPP = @CPP@ $(GCCSPECS) + LD = @LD@ OBJCOPY = @OBJCOPY@ NM = @NM@ -- cgit v1.2.3