Skip to content

Commit 15dfacf

Browse files
Fix the build outside of Linux: disable shared libraries
Technically, they should be allowed on the BSDs, but it's far easier to whitelist than blacklist. Signed-off-by: Thiago Macieira <[email protected]>
1 parent 47914e0 commit 15dfacf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,11 @@ CBORDUMP_SOURCES = tools/cbordump/cbordump.c
3535

3636
INSTALL_TARGETS += $(bindir)/cbordump
3737
INSTALL_TARGETS += $(libdir)/libtinycbor.a
38+
ifneq ($(shell uname -s), Linux)
3839
INSTALL_TARGETS += $(libdir)/libtinycbor.so
3940
INSTALL_TARGETS += $(libdir)/libtinycbor.so.0
4041
INSTALL_TARGETS += $(libdir)/libtinycbor.so.$(VERSION)
42+
endif
4143
INSTALL_TARGETS += $(pkgconfigdir)/tinycbor.pc
4244
INSTALL_TARGETS += $(TINYCBOR_HEADERS:src/%=$(includedir)/tinycbor/%)
4345

0 commit comments

Comments
 (0)