mirror of
https://github.com/gnustep/tools-make.git
synced 2025-04-23 22:33:28 +00:00
Add support for OpenBSD to build with clang, basically link against -lc++abi
since when using clang, the GCC internals aren't around. I had it in a ugly way hardcoded in the GNUstep ports tree for years. Tested on amd64, with gcc 11 from packages, and linking against gcc libobjc, as well as using base clang, and building against libobjc2 from packages.
This commit is contained in:
parent
c6a561d713
commit
7cd2f05644
1 changed files with 5 additions and 0 deletions
|
@ -724,8 +724,13 @@ SHARED_LIBEXT = .so
|
|||
|
||||
HAVE_BUNDLES = yes
|
||||
BUNDLE_LD = $(LD)
|
||||
ifeq ($(CLANG_CC), yes)
|
||||
BUNDLE_LDFLAGS += -shared -fPIC -lc++abi
|
||||
ADDITIONAL_LDFLAGS += -Wl,-E -lc++abi
|
||||
else
|
||||
BUNDLE_LDFLAGS += -shared -fPIC
|
||||
ADDITIONAL_LDFLAGS += -Wl,-E
|
||||
endif
|
||||
STATIC_LDFLAGS += -static
|
||||
|
||||
# nm on OpenBSD is rather like on Darwin
|
||||
|
|
Loading…
Reference in a new issue