From 2c63f42dbb863516a9090800acb088cdee46ecde Mon Sep 17 00:00:00 2001 From: "W. Eric Norum" Date: Fri, 16 Feb 2001 16:45:55 +0000 Subject: [PATCH] More changes to reflect new EPICS build environment. --- configure/os/CONFIG.Common.RTEMS | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/configure/os/CONFIG.Common.RTEMS b/configure/os/CONFIG.Common.RTEMS index 335ebf538..24190c04d 100644 --- a/configure/os/CONFIG.Common.RTEMS +++ b/configure/os/CONFIG.Common.RTEMS @@ -15,7 +15,11 @@ #------------------------------------------------------- # Where to find RTEMS -RTEMS_BASE=/usr/local/RTEMS +RTEMS_BASE=/opt/rtems + +#------------------------------------------------------- +# RTEMS tools are similar to UNIX tools +-include $(CONFIG)/os/CONFIG.Common.UnixCommon #------------------------------------------------------- # Pick up the RTEMS tool/path definitions from the RTEMS BSP directory. @@ -28,6 +32,8 @@ include $(CONFIG.CC) CC = $(CC_FOR_TARGET) $(GCCSPECS) -fasm CCC = $(CC) AR = $(AR_FOR_TARGET) +RTEMS_LDFLAGS := $(LDFLAGS) +LINK.cpp = $(CCC) -o $@ $(RTEMS_LDFLAGS) $(LDFLAGS) $(LINK_OBJS) $(PROD_LD_OBJS) $(PROD_LD_RESS) $(LDLIBS) #------------------------------------------------------- # Build types @@ -55,14 +61,10 @@ CPPFLAGS += $(CROSS_CPPFLAGS) $(POSIX_CPPFLAGS) $(EPICS_BASE_CPPFLAGS)\ $(TARGET_CPPFLAGS) $(USR_CPPFLAGS) $(ARCH_DEP_CPPFLAGS)\ $(OP_SYS_CPPFLAGS) $(CODE_CPPFLAGS) -#------------------------------------------------------- -# RTEMS prefix and suffix definitions -EXE = -OBJ = .o - #-------------------------------------------------- # Although RTEMS uses gcc, it wants to use gcc its own way CROSS_CPPFLAGS = +CROSS_LDFLAGS = #-------------------------------------------------- # operating system class (include/os/) @@ -71,7 +73,7 @@ OS_CLASS = RTEMS #-------------------------------------------------- # Operating system flags OP_SYS_CPPFLAGS = -Dfopen=rtems_fopen -Dmain=rtems_main -OP_SYS_LDLIBS = -lreadline -lcurses +OP_SYS_LDLIBS = -lreadline -lcurses -lm OP_SYS_LDFLAGS = $(CPU_CFLAGS) -u Init -lCom \ $(PROJECT_RELEASE)/lib/no-dpmem.rel \ $(PROJECT_RELEASE)/lib/no-mp.rel \