(openbsd) enable shared libs, use fPIC

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@16957 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2003-06-18 22:08:30 +00:00
parent 9902a7e765
commit 9e5ed75ab9
2 changed files with 7 additions and 3 deletions

View file

@ -1,3 +1,7 @@
2003-06-18 Adam Fedor <fedor@gnu.org>
* target.make (openbsd): Enable shared libs, use -fPIC not -fpic.
2003-06-17 Adam Fedor <fedor@gnu.org>
* Instance/Documentation/texi.make: Don't abort make if

View file

@ -705,7 +705,7 @@ ifeq ($(findstring openbsd, $(GNUSTEP_TARGET_OS)), openbsd)
# 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_LIB_LINK_CMD = \
$(CC) -shared -Wl,-soname,$(LIB_LINK_SONAME_FILE) \
-o $(LIB_LINK_OBJ_DIR)/$(LIB_LINK_VERSION_FILE) $^ \
@ -725,10 +725,10 @@ AFTER_INSTALL_SHARED_LIB_CMD = \
OBJ_MERGE_CMD = \
$(CC) -nostdlib -r -o $(GNUSTEP_OBJ_DIR)/$(SUBPROJECT_PRODUCT) $^ ;
SHARED_CFLAGS += -fpic
SHARED_CFLAGS += -fPIC
SHARED_LIBEXT = .so
HAVE_BUNDLES = no
HAVE_BUNDLES = yes
BUNDLE_LD = $(CC)
BUNDLE_LDFLAGS += -shared -fpic
#ADDITIONAL_LDFLAGS += -rdynamic