Add EXTRACT_CLASS_NAMES_COMMAND for openbsd

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@22628 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2006-03-09 19:10:59 +00:00
parent adbcaa3c3c
commit fcb27cb974
2 changed files with 8 additions and 4 deletions

View file

@ -1,3 +1,8 @@
2006-03-09 Adam Fedor <fedor@gnu.org>
* target.make (openbsd): Add specific EXTACT_CLASS_NAMES_COMMAND.
Patch #4957 from Andrew Sveikauskas.
2006-03-07 Jeremy Bettis <jeremy@deadbeef.com>
* Instance/framework.make: Only copy headers if they changed

View file

@ -714,10 +714,6 @@ endif
# OpenBSD 3.x (though set for 3.3)
#
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 = yes
SHARED_LIB_LINK_CMD = \
$(CC) -shared -Wl,-soname,$(LIB_LINK_SONAME_FILE) \
@ -752,6 +748,9 @@ BUNDLE_LD = $(CC)
BUNDLE_LDFLAGS += -shared -fPIC
#ADDITIONAL_LDFLAGS += -rdynamic
STATIC_LDFLAGS += -static
# nm on OpenBSD is rather like on Darwin
EXTRACT_CLASS_NAMES_COMMAND = nm -g $$object_file | sed -n -e '/[^U] __objc_class_name_/ {s/[0-9a-f]* [^U] __objc_class_name_//p;}'
endif
#
# end OpenBSD 3.x