Skip to content

Commit

Permalink
Fix dylib build on MacOS (specify -lc)
Browse files Browse the repository at this point in the history
Applied patch by Clive Brettingham-Moore
<[email protected]> from:

kynesim#28
  • Loading branch information
rxseger committed Jun 20, 2016
1 parent db1f79f commit 62449bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ STATIC_LIB = $(LIBDIR)/libtstools.a
LIBOPTS = $(ARCH_FLAGS) $(STATIC_LIB)

ifeq ($(shell uname -s), Darwin)
SHARED_LIB_NAME = libtstools.xxx
SHARED_LIB_NAME = libtstools.dylib
else
SHARED_LIB_NAME = libtstools.so
endif
Expand Down Expand Up @@ -227,7 +227,7 @@ ifeq ($(shell uname -s), Darwin)
$(STATIC_LIB): $(OBJS)
libtool -static $(OBJS) -o $(STATIC_LIB)
$(SHARED_LIB): $(OBJS)
libtool -dynamic $(OBJS) -o $(SHARED_LIB)
libtool -dynamic -lc $(OBJS) -o $(SHARED_LIB)
else
$(STATIC_LIB): $(OBJS)
rm -f $(STATIC_LIB)
Expand Down

0 comments on commit 62449bf

Please sign in to comment.