From 71d0db9c486df5b570dc7ed1d4ef449e2cf1676b Mon Sep 17 00:00:00 2001 From: "Janet B. Anderson" Date: Thu, 7 Feb 2002 21:26:05 +0000 Subject: [PATCH] Use gnu compiler settings in CONFIG_COMMON. --- config/CONFIG.Host.Linux | 52 +++++----------------------------------- 1 file changed, 6 insertions(+), 46 deletions(-) diff --git a/config/CONFIG.Host.Linux b/config/CONFIG.Host.Linux index 6a94620c7..6d717234d 100644 --- a/config/CONFIG.Host.Linux +++ b/config/CONFIG.Host.Linux @@ -12,54 +12,15 @@ AR = ar -rc ARCMD = $(AR) $@ RANLIB = ranlib -t -#OP_SYS_FLAGS = -D_BSD_SOURCE -D_POSIX_SOURCE +ANSI=GCC +CPLUSPLUS=G++ -# Configure OS vendor C compiler -ACC = gcc -ACC_ANSI = $(ACC) -#ACC_ANSI = $(ACC) -ansi -D_SVID_SOURCE -#ACC_STRICT = $(ACC) -Xc -ACC_STRICT = $(ACC) -pedantic -#ACC_STRICT = $(ACC) -ansi -pedantic -D_SVID_SOURCE -ACC_TRAD = $(ACC) -ACC_WARN_YES = -Wall -ACC_WARN_NO = -w -ACC_OPT_YES = -O -ACC_OPT_NO = -g -ACC_SFLAGS_YES = -Bstatic -ACC_SFLAGS_NO= -ACC_SLIBS_YES = -ACC_SLIBS_NO= -ACC_SHRLIB_CFLAGS_YES = -fPIC -ACC_SHRLIB_LDFLAGS_YES = -shared -Wl,-soname,$@ +GCC_SHRLIB_LDFLAGS_YES += -Wl,-soname,$@ +G++_SHRLIB_LDFLAGS_YES += -Wl,-soname,$@ +OP_SYS_CFLAGS += -D_BSD_SOURCE -# Configure OS vendor C++ compiler -CCC = g++ -CCC_NORMAL = $(CCC) -CCC_STRICT = $(CCC) -#CCC_TEMPL_INST_FLAG = -DEXPL_TEMPL -CCC_WARN_YES = -Wall -CCC_WARN_NO = -CCC_OPT_YES = -O -CCC_OPT_NO = -g -CCC_SFLAGS_YES = -Bstatic -CCC_SFLAGS_NO= -CCC_SLIBS_YES = -CCC_SLIBS_NO= -CCC_DEPENDS_FLAG = -MM -CCC_SHRLIB_CFLAGS_YES = -fPIC -CCC_SHRLIB_LDFLAGS_YES = -shared -Wl,-soname,$@ - -# added smh 6/5/98 : when building fdmgr - seems to use this not ACC -# in effect this overides orig def in CONFIG_COMMON : -# which is GCC_STRICT = $(GCC) -ansi -pedantic -GCC_STRICT = $(GCC) -G++_STRICT = $(G++) -Wtraditional - - -#ARCH_DEP_CFLAGS = -D_X86_ -Dlinux -D_USE_BSD -ARCH_DEP_CFLAGS = -D_X86_ -Dlinux +ARCH_DEP_CFLAGS = -D_X86_ -Dlinux -mpentium ARCH_DEP_LDLIBS += -lpthread -lreadline -lcurses -lrt #Allows R3.13 built extensions to load R3.14 shared libs @@ -78,4 +39,3 @@ SYS_DLL_LIBS_Linux += pthread readline curses rt #ARCH_DEP_CFLAGS += -D_GNU_SOURCE -