BUILD: Makefile: include librt before libpthread
Statically building on for i386/x86_64 on linux+glibc 2.18 fails in rt with undefined references to pthread_attr_init and a few others. Let's just swap the two libs in order to fix this.
This commit is contained in:
parent
7259fa2b89
commit
c0bbdc196d
8
Makefile
8
Makefile
|
@ -508,14 +508,14 @@ ifneq ($(USE_DL),)
|
||||||
OPTIONS_LDFLAGS += -ldl
|
OPTIONS_LDFLAGS += -ldl
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ($(USE_THREAD),)
|
|
||||||
OPTIONS_LDFLAGS += -lpthread
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifneq ($(USE_RT),)
|
ifneq ($(USE_RT),)
|
||||||
OPTIONS_LDFLAGS += -lrt
|
OPTIONS_LDFLAGS += -lrt
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifneq ($(USE_THREAD),)
|
||||||
|
OPTIONS_LDFLAGS += -lpthread
|
||||||
|
endif
|
||||||
|
|
||||||
ifneq ($(USE_BACKTRACE),)
|
ifneq ($(USE_BACKTRACE),)
|
||||||
OPTIONS_LDFLAGS += -Wl,$(if $(EXPORT_SYMBOL),$(EXPORT_SYMBOL),--export-dynamic)
|
OPTIONS_LDFLAGS += -Wl,$(if $(EXPORT_SYMBOL),$(EXPORT_SYMBOL),--export-dynamic)
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in New Issue