mirror of
https://github.com/gnustep/tools-make.git
synced 2025-05-06 03:40:44 +00:00
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
This commit is contained in:
parent
a8359b5cf0
commit
ac7941d3a6
2 changed files with 10 additions and 9 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2000-10-17 Adam Fedor <fedor@gnu.org>
|
||||||
|
|
||||||
|
* target.make (OpenBSD): Add -fpic to SHARED_CFLAGS. Enable
|
||||||
|
shared libraries.
|
||||||
|
|
||||||
Fri Oct 13 11:26:49 2000 Nicola Pero <n.pero@mi.flashnet.it>
|
Fri Oct 13 11:26:49 2000 Nicola Pero <n.pero@mi.flashnet.it>
|
||||||
|
|
||||||
* service.make (internal-svc-distclean): Remove the service
|
* service.make (internal-svc-distclean): Remove the service
|
||||||
|
|
14
target.make
14
target.make
|
@ -488,13 +488,13 @@ SHARED_LIB_LINK_CMD = \
|
||||||
rm -f $(LIBRARY_FILE); \
|
rm -f $(LIBRARY_FILE); \
|
||||||
$(LN_S) $(VERSION_LIBRARY_FILE) $(LIBRARY_FILE))
|
$(LN_S) $(VERSION_LIBRARY_FILE) $(LIBRARY_FILE))
|
||||||
|
|
||||||
SHARED_CFLAGS += -shared
|
SHARED_CFLAGS += -shared -fpic
|
||||||
SHARED_LIBEXT = .so
|
SHARED_LIBEXT = .so
|
||||||
|
|
||||||
HAVE_BUNDLES = yes
|
HAVE_BUNDLES = yes
|
||||||
BUNDLE_LD = $(CC)
|
BUNDLE_LD = $(CC)
|
||||||
#BUNDLE_CFLAGS +=
|
#BUNDLE_CFLAGS +=
|
||||||
BUNDLE_LDFLAGS += -shared
|
BUNDLE_LDFLAGS += -shared -fpic
|
||||||
#ADDITIONAL_LDFLAGS += -rdynamic
|
#ADDITIONAL_LDFLAGS += -rdynamic
|
||||||
ifeq ($(shared), no)
|
ifeq ($(shared), no)
|
||||||
ADDITIONAL_LDFLAGS += -static
|
ADDITIONAL_LDFLAGS += -static
|
||||||
|
@ -542,11 +542,7 @@ endif
|
||||||
# OpenBSD 2.x (though set for 2.4)
|
# OpenBSD 2.x (though set for 2.4)
|
||||||
#
|
#
|
||||||
ifeq ($(findstring openbsd, $(GNUSTEP_TARGET_OS)), openbsd)
|
ifeq ($(findstring openbsd, $(GNUSTEP_TARGET_OS)), openbsd)
|
||||||
# This is disabled temporarily, because I don't know exactly how
|
HAVE_SHARED_LIBS = yes
|
||||||
# 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
|
|
||||||
SHARED_LD = ld
|
SHARED_LD = ld
|
||||||
SHARED_LIB_LINK_CMD = \
|
SHARED_LIB_LINK_CMD = \
|
||||||
$(SHARED_LD) $(SHARED_LD_PREFLAGS) -x -Bshareable -Bforcearchive \
|
$(SHARED_LD) $(SHARED_LD_PREFLAGS) -x -Bshareable -Bforcearchive \
|
||||||
|
@ -556,13 +552,13 @@ SHARED_LIB_LINK_CMD = \
|
||||||
rm -f $(LIBRARY_FILE); \
|
rm -f $(LIBRARY_FILE); \
|
||||||
$(LN_S) $(VERSION_LIBRARY_FILE) $(LIBRARY_FILE))
|
$(LN_S) $(VERSION_LIBRARY_FILE) $(LIBRARY_FILE))
|
||||||
|
|
||||||
SHARED_CFLAGS += -shared
|
SHARED_CFLAGS += -shared -fpic
|
||||||
SHARED_LIBEXT = .so
|
SHARED_LIBEXT = .so
|
||||||
|
|
||||||
HAVE_BUNDLES = no
|
HAVE_BUNDLES = no
|
||||||
BUNDLE_LD = $(CC)
|
BUNDLE_LD = $(CC)
|
||||||
#BUNDLE_CFLAGS +=
|
#BUNDLE_CFLAGS +=
|
||||||
BUNDLE_LDFLAGS += -shared
|
BUNDLE_LDFLAGS += -shared -fpic
|
||||||
#ADDITIONAL_LDFLAGS += -rdynamic
|
#ADDITIONAL_LDFLAGS += -rdynamic
|
||||||
ifeq ($(shared), no)
|
ifeq ($(shared), no)
|
||||||
ADDITIONAL_LDFLAGS += -static
|
ADDITIONAL_LDFLAGS += -static
|
||||||
|
|
Loading…
Reference in a new issue