mirror of
https://github.com/gnustep/tools-make.git
synced 2025-05-30 00:41:14 +00:00
target.make modified to correctly identify and work with freeBSD2.x and
freebsd3.x. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@3669 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
39353431db
commit
432d1dcd8e
1 changed files with 30 additions and 3 deletions
33
target.make
33
target.make
|
@ -283,9 +283,36 @@ endif
|
|||
|
||||
####################################################
|
||||
#
|
||||
# FreeBSD
|
||||
# FreeBSD ELF
|
||||
#
|
||||
ifeq ($(GNUSTEP_TARGET_OS), freebsd3.0)
|
||||
ifeq ($(findstring freebsd3, $(GNUSTEP_TARGET_OS)), freebsd3)
|
||||
HAVE_SHARED_LIBS = yes
|
||||
SHARED_LIB_LINK_CMD = \
|
||||
$(CC) -shared -Wl,-soname,$(VERSION_LIBRARY_FILE) \
|
||||
-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 = $(CC)
|
||||
BUNDLE_CFLAGS += -fPIC
|
||||
BUNDLE_LDFLAGS += -shared
|
||||
ADDITIONAL_LDFLAGS += -rdynamic
|
||||
endif
|
||||
#
|
||||
# end FreeBSD
|
||||
#
|
||||
####################################################
|
||||
|
||||
####################################################
|
||||
#
|
||||
# FreeBSD a.out (2.2.x)
|
||||
#
|
||||
ifeq ($(findstring freebsd2, $(GNUSTEP_TARGET_OS)), freebsd2)
|
||||
HAVE_SHARED_LIBS = yes
|
||||
SHARED_LIB_LINK_CMD = \
|
||||
$(CC) -shared -Wl,-soname,$(VERSION_LIBRARY_FILE) \
|
||||
|
@ -304,7 +331,7 @@ BUNDLE_LDFLAGS += -shared
|
|||
ADDITIONAL_LDFLAGS += -rdynamic
|
||||
endif
|
||||
#
|
||||
# end FreeBSD
|
||||
# end FreeBSD A.out
|
||||
#
|
||||
####################################################
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue