From ac7941d3a6ea708a81bf5540e2c313022494b288 Mon Sep 17 00:00:00 2001 From: Adam Fedor Date: Tue, 17 Oct 2000 18:16:54 +0000 Subject: [PATCH] Fix and enable shared libs on OpenBSD git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@7844 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 5 +++++ target.make | 14 +++++--------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1935a455..1bc31836 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-10-17 Adam Fedor + + * target.make (OpenBSD): Add -fpic to SHARED_CFLAGS. Enable + shared libraries. + Fri Oct 13 11:26:49 2000 Nicola Pero * service.make (internal-svc-distclean): Remove the service diff --git a/target.make b/target.make index bbb0f2d9..72e96c19 100644 --- a/target.make +++ b/target.make @@ -488,13 +488,13 @@ SHARED_LIB_LINK_CMD = \ rm -f $(LIBRARY_FILE); \ $(LN_S) $(VERSION_LIBRARY_FILE) $(LIBRARY_FILE)) -SHARED_CFLAGS += -shared +SHARED_CFLAGS += -shared -fpic SHARED_LIBEXT = .so HAVE_BUNDLES = yes BUNDLE_LD = $(CC) #BUNDLE_CFLAGS += -BUNDLE_LDFLAGS += -shared +BUNDLE_LDFLAGS += -shared -fpic #ADDITIONAL_LDFLAGS += -rdynamic ifeq ($(shared), no) ADDITIONAL_LDFLAGS += -static @@ -542,11 +542,7 @@ endif # OpenBSD 2.x (though set for 2.4) # ifeq ($(findstring openbsd, $(GNUSTEP_TARGET_OS)), openbsd) -# This is disabled temporarily, because I don't know exactly how -# to link shared libs. Everything seems to link correctly now but -# constructor functions in the shared lib failed to get called -# when the lib is loaded in. I don't know why. ASF. -HAVE_SHARED_LIBS = no +HAVE_SHARED_LIBS = yes SHARED_LD = ld SHARED_LIB_LINK_CMD = \ $(SHARED_LD) $(SHARED_LD_PREFLAGS) -x -Bshareable -Bforcearchive \ @@ -556,13 +552,13 @@ SHARED_LIB_LINK_CMD = \ rm -f $(LIBRARY_FILE); \ $(LN_S) $(VERSION_LIBRARY_FILE) $(LIBRARY_FILE)) -SHARED_CFLAGS += -shared +SHARED_CFLAGS += -shared -fpic SHARED_LIBEXT = .so HAVE_BUNDLES = no BUNDLE_LD = $(CC) #BUNDLE_CFLAGS += -BUNDLE_LDFLAGS += -shared +BUNDLE_LDFLAGS += -shared -fpic #ADDITIONAL_LDFLAGS += -rdynamic ifeq ($(shared), no) ADDITIONAL_LDFLAGS += -static