From 561c250892eb237425397299b31ec7964eda47ca Mon Sep 17 00:00:00 2001 From: "W. Eric Norum" Date: Tue, 7 May 2002 18:19:55 +0000 Subject: [PATCH] New developer tools (gcc-3.1) are better at using precompiled headers so there's no longer any need to specify -fno-cpp-precomp. Continue changes aimed at supporting shared libraries. They 'almost' work now, but there seems to be some problems with getting the right version when multiple libraries provide a routine. --- configure/os/CONFIG.Common.darwin-ppc | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/configure/os/CONFIG.Common.darwin-ppc b/configure/os/CONFIG.Common.darwin-ppc index c496013a3..58f89de4c 100644 --- a/configure/os/CONFIG.Common.darwin-ppc +++ b/configure/os/CONFIG.Common.darwin-ppc @@ -20,10 +20,9 @@ SHARED_LIBRARIES=NO # # Special flags for Darwin -# No fancy precompiled headers # No common blocks (as required when going to shared libraries) # -OP_SYS_CFLAGS += -no-cpp-precomp -fno-common +OP_SYS_CFLAGS += -fno-common # # Need to get some fink-installed packages (readline, etc.). @@ -37,6 +36,10 @@ OP_SYS_LDLIBS += -lreadline # # Stuff that will be needed when going to shared libraries -# -compatibility_version $(SHRLIB_VERSION) -current_version $(SHRLIB_VERSION).1 -SHRLIB_LDFLAGS = -dynamiclib -flat_namespace -undefined suppress -SHRLIB_SUFFIX = $(addprefix .,$(SHRLIB_VERSION)).dylib +# +SHRLIB_LDFLAGS = -dynamiclib -flat_namespace -undefined suppress \ + -install_name $(EPICS_BASE)/lib/$(HOST_ARCH)/$@ \ + -compatibility_version $(EPICS_VERSION).$(EPICS_REVISION) \ + -current_version $(EPICS_VERSION).$(EPICS_REVISION).$(EPICS_MODIFICATION) +SHRLIB_SUFFIX = $(addprefix .,$(EPICS_VERSION).$(EPICS_REVISION).$(EPICS_MODIFICATION)).dylib +SHRLIB_VERSION = $(EPICS_VERSION).$(EPICS_REVISION).$(EPICS_MODIFICATION)