Attempt at netbsd shared libs

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@3168 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 1998-11-03 15:05:04 +00:00
parent d4b3c69431
commit c766a8b973
2 changed files with 31 additions and 0 deletions

View file

@ -1,3 +1,7 @@
Tue Nov 3 10:30:12 1998 Adam Fedor <fedor@doc.com>
* target.make (netbsd): New (attempt at) shared lib target.
Wed Oct 21 21:00:00 1998 Richard Frith-Macdonald <richard@brainstrom.co.uk>
* target.make: Add -rdynamic to ld flags on linux so that bundles

View file

@ -252,6 +252,33 @@ endif
#
####################################################
####################################################
#
# NetBSD
#
ifeq ($(findstring netbsd, $(GNUSTEP_TARGET_OS)), netbsd)
HAVE_SHARED_LIBS = yes
SHARED_LD = ld
SHARED_LIB_LINK_CMD = \
$(SHARED_LD) -x -Bshareable -Bforcearchive \
-o $(GNUSTEP_OBJ_DIR)/$(VERSION_LIBRARY_FILE) $^ ;\
(cd $(GNUSTEP_OBJ_DIR); \
rm -f $(LIBRARY_FILE); \
$(LN_S) $(VERSION_LIBRARY_FILE) $(LIBRARY_FILE))
SHARED_CFLAGS += -fPIC
SHARED_LIBEXT = .so
HAVE_BUNDLES = yes
BUNDLE_LD = gcc
BUNDLE_CFLAGS += -fPIC
BUNDLE_LDFLAGS += -shared
ADDITIONAL_LDFLAGS += -rdynamic
endif
#
# end NetBSD
#
####################################################
####################################################
#