diff --git a/Makefile b/Makefile index 2d7e0e972..396471062 100644 --- a/Makefile +++ b/Makefile @@ -508,14 +508,14 @@ ifneq ($(USE_DL),) OPTIONS_LDFLAGS += -ldl endif -ifneq ($(USE_THREAD),) -OPTIONS_LDFLAGS += -lpthread -endif - ifneq ($(USE_RT),) OPTIONS_LDFLAGS += -lrt endif +ifneq ($(USE_THREAD),) +OPTIONS_LDFLAGS += -lpthread +endif + ifneq ($(USE_BACKTRACE),) OPTIONS_LDFLAGS += -Wl,$(if $(EXPORT_SYMBOL),$(EXPORT_SYMBOL),--export-dynamic) endif