mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-17 02:56:51 +00:00
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
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user