Skip to content

Commit 0467e52

Browse files
committed
Make libuwind target thread safe
1 parent 2ee53db commit 0467e52

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sdk/cpprt/Makefile

+3-2
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ all: $(CPPRT)
7575
prepare-libunwind:
7676
$(CP) linux/pthread_compat.h $(LIBUNWIND_DIR)/include
7777

78-
$(CPPRT): $(OBJS) prepare-libunwind libunwind
78+
$(CPPRT): $(OBJS) prepare-libunwind
79+
$(Make) libunwind
7980
$(CP) $(LIBUNWIND_DIR)/src/.libs/libunwind.a $(CPPRT)
8081
$(AR) rs $@ $(OBJS)
8182

@@ -89,7 +90,7 @@ libunwind:
8990
.PHONY: clean
9091
clean:
9192
@$(RM) $(OBJS) $(CPPRT)
92-
ifeq ("$(shell test -f $(LIBUNWIND_DIR)/Makefile && echo Makefile exists)", "Makefile exists")
93+
ifeq ("$(shell test -f $(LIBUNWIND_DIR)/Makefile && echo Makefile exists)", "Makefile exists")
9394
@-$(MAKE) -C $(LIBUNWIND_DIR) clean
9495
endif
9596
@$(RM) -r $(LIBUNWIND_DIR)/INSTALL \

0 commit comments

Comments
 (0)