Skip to content

Commit 97464f6

Browse files
authored
Merge pull request #48 from buzzdeee/master
Add support for OpenBSD to build with clang,
2 parents a2a18d4 + 7cd2f05 commit 97464f6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

target.make

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -724,8 +724,13 @@ SHARED_LIBEXT = .so
724724

725725
HAVE_BUNDLES = yes
726726
BUNDLE_LD = $(LD)
727+
ifeq ($(CLANG_CC), yes)
728+
BUNDLE_LDFLAGS += -shared -fPIC -lc++abi
729+
ADDITIONAL_LDFLAGS += -Wl,-E -lc++abi
730+
else
727731
BUNDLE_LDFLAGS += -shared -fPIC
728732
ADDITIONAL_LDFLAGS += -Wl,-E
733+
endif
729734
STATIC_LDFLAGS += -static
730735

731736
# nm on OpenBSD is rather like on Darwin

0 commit comments

Comments
 (0)