Skip to content

Commit

Permalink
Make libuwind target thread safe
Browse files Browse the repository at this point in the history
  • Loading branch information
jonringer committed Feb 10, 2022
1 parent 2ee53db commit 0467e52
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sdk/cpprt/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ all: $(CPPRT)
prepare-libunwind:
$(CP) linux/pthread_compat.h $(LIBUNWIND_DIR)/include

$(CPPRT): $(OBJS) prepare-libunwind libunwind
$(CPPRT): $(OBJS) prepare-libunwind
$(Make) libunwind
$(CP) $(LIBUNWIND_DIR)/src/.libs/libunwind.a $(CPPRT)
$(AR) rs $@ $(OBJS)

Expand All @@ -89,7 +90,7 @@ libunwind:
.PHONY: clean
clean:
@$(RM) $(OBJS) $(CPPRT)
ifeq ("$(shell test -f $(LIBUNWIND_DIR)/Makefile && echo Makefile exists)", "Makefile exists")
ifeq ("$(shell test -f $(LIBUNWIND_DIR)/Makefile && echo Makefile exists)", "Makefile exists")
@-$(MAKE) -C $(LIBUNWIND_DIR) clean
endif
@$(RM) -r $(LIBUNWIND_DIR)/INSTALL \
Expand Down

0 comments on commit 0467e52

Please sign in to comment.