I have added "override" in the head of every CFLAGS/LDFLAGS line, but
toggle quoted messageShow quoted text
error still there.
the link order is a common problem.
-Wl,-lrt ntpclient.o phaselock.o -o ntpclient
ntpclient.o phaselock.o -Wl,-lrt ntpclient
Does poky have some option or some solution for that?
(I build it success on host.)
On Tue, 2011-09-27 at 11:18 +0800, Ni Qingliang wrote:
I'm adding ntpclient into my distro.
but build fail, reason is the CFLAGS/LDFLAGS in it's Makefile didn't
What can I do?
the original makefile is:
CFLAGS += -fno-strict-aliasing
CFLAGS += -std=c89
CFLAGS += -W -Wall
CFLAGS += -O2
CFLAGS += -DENABLE_DEBUG
CFLAGS += -DENABLE_REPLAY
LDFLAGS += -lrt
./ntpclient -d -r <test.dat
ntpclient: ntpclient.o phaselock.o
ntpclient.o phaselock.o: ntpclient.h
rm -f ntpclient adjtimex *.o
yocto mailing list