From 83569ffcbc18af7a7d99d803be486b9576c645fa Mon Sep 17 00:00:00 2001 From: "Janet B. Anderson" Date: Fri, 17 Nov 2006 22:27:27 +0000 Subject: [PATCH] Updates for R3.14.9. --- config/CONFIG.Host.freebsd | 34 ++++++++++++-------------- config/CONFIG_HOST_ARCH.freebsd-x86_64 | 5 +++- 2 files changed, 20 insertions(+), 19 deletions(-) diff --git a/config/CONFIG.Host.freebsd b/config/CONFIG.Host.freebsd index 90480983b..d68fa0822 100644 --- a/config/CONFIG.Host.freebsd +++ b/config/CONFIG.Host.freebsd @@ -11,32 +11,30 @@ # This file is maintained by the EPICS community. # Sites may override these definitions in CONFIG_SITE.Host.freebsd -ARCH_CLASS = freebsd +OS_CLASS = freebsd +ARCH_CLASS = x86_64 # Include definitions common to all Unix archs include $(EPICS_BASE)/config/CONFIG.Host.UnixCommon -AR = ar -rc -ARCMD = $(AR) $@ -RANLIB = ranlib -t +ARCH_DEP_CPPFLAGS += -D_X86_64_ -ANSI=GCC -CPLUSPLUS=G++ +CODE_CPPFLAGS = -D_REENTRANT -GCC_SHRLIB_LDFLAGS_YES += -Wl,-soname,$@ -G++_SHRLIB_LDFLAGS_YES += -Wl,-soname,$@ +#POSIX_CPPFLAGS = -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS -D_XOPEN_SOURCE=500 +POSIX_CPPFLAGS = -D_POSIX_THREADS +POSIX_LDLIBS = -lpthread -OP_SYS_CFLAGS += -D_BSD_SOURCE +# -D_BSD_SOURCE for gethostname() in unistd.h as needed by cacChannelIO.cpp. +OP_SYS_CPPFLAGS += -D_BSD_SOURCE +OP_SYS_CPPFLAGS += -Dfreebsd +#OP_SYS_LDLIBS += -lrt -ARCH_DEP_CFLAGS = -D_X86_ -Dfreebsd -ARCH_DEP_LDLIBS += -lpthread -lreadline -lcurses -lrt +# Set runtime path for shared libraries +RUNTIME_LDFLAGS = $(SHRLIB_SEARCH_FULLPATHDIRS:%=-Wl,-rpath,%) -#Allows R3.13 built extensions to load R3.14 shared libs -SYS_DLL_LIBS_freebsd += pthread readline curses rt - -# Runtime ldflags -RUNTIME_LIBS =$(EPICS_BASE)/lib/$(EPICS_HOST_ARCH)\ - $(EPICS_EXTENSIONS)/lib/$(EPICS_HOST_ARCH) -RUNTIME_LDFLAGS = $(RUNTIME_LIBS:%=-Wl,-rpath,%) +# Definitions used when COMMANDLINE_LIBRARY is READLINE +LDLIBS_READLINE = -lreadline -lcurses +GNU_LDLIBS_YES = -lgcc_pic diff --git a/config/CONFIG_HOST_ARCH.freebsd-x86_64 b/config/CONFIG_HOST_ARCH.freebsd-x86_64 index 371de74f1..f8b1b1b81 100644 --- a/config/CONFIG_HOST_ARCH.freebsd-x86_64 +++ b/config/CONFIG_HOST_ARCH.freebsd-x86_64 @@ -8,4 +8,7 @@ #************************************************************************* # $Id$ --include $(EPICS_BASE)/config/CONFIG_HOST_ARCH.freebsd +-include $(EPICS_BASE)/config/CONFIG_HOST_ARCH.UnixCommon + +WIND_HOST_TYPE = i386-linux2 +