[dpdk-dev] [PATCH] mk: fix static link with glibc < 2.17
Thomas Monjalon
thomas.monjalon at 6wind.com
Mon Jul 25 14:37:22 CEST 2016
2016-07-25 11:13, Azarewicz, PiotrX T:
> > The problem is that -lrt appears before -lrte_eal.
> > The question is: where does it come from?
> > It is even before _LDLIBS-y += -L$(RTE_SDK_BIN)/lib... mystery
>
> root cause:
> commit c7cda4d8b4ea9cb0f209dda36882d225354b1db9
The error is seen after this commit, yes.
But I would not say it is the root cause.
The root cause is adding -lrt before other libs:
281948b4753e ("mk: fix missing librt dependencies")
> and my workaround is:
> /app/test/Makefile
>
> ifeq ($(CONFIG_RTE_LIBRTE_SCHED),y)
> -LDLIBS += -lrt
> SRCS-y += test_red.c
> SRCS-y += test_sched.c
> endif
Yes it is what I've done in this patch:
http://dpdk.org/patch/15008
More information about the dev
mailing list