On Mon, Sep 26, 2011 at 10:18 PM, Ni Qingliang
niqingli...@insigma.com.cn wrote:
Hello:
I'm adding ntpclient into my distro.
but build fail, reason is the CFLAGS/LDFLAGS in it's Makefile didn't
take effect.
If the CFLAGS are not taking effect from the Makefile are you over
ridding the value
Thanks!
the attachement is the bb file and Makefile(modified),
after 'override' CFLAGS/LDFLAGS in Makefile, I have added
override LDFLAGS += -Wl,--no-as-needed
in the Makefile to neutralize the '-Wl,--as-needed' in the original
LDFLAGS.
and then the world clear.
On Tue, 2011-09-27 at 23:46
On Tue, Sep 27, 2011 at 8:00 PM, Ni Qingliang
niqingli...@insigma.com.cn wrote:
the attachement is the bb file and Makefile(modified),
It usually best to include these attachments inline when possible.
after 'override' CFLAGS/LDFLAGS in Makefile, I have added
override LDFLAGS +=
On Tue, Sep 27, 2011 at 9:04 PM, Ni Qingliang
niqingli...@insigma.com.cn wrote:
1. sorry, I will.
2. Yes, I made a new Makefile (based on the original) as the patch of
ntpclient (which will override the original Makefile).
There are lots of ways to do this and avoid making a patch. You can
use
thanks.
If we want to use the original Makefile, we must get rid of the -e and
-Wl,as-needed in original arguments, for latter, we can add
-Wl,--no-as-needed, but what about the -e?
On Wed, 2011-09-28 at 10:12 +0800, McClintock Matthew-B29882 wrote:
On Tue, Sep 27, 2011 at 9:04 PM, Ni Qingliang
Hello:
I'm adding ntpclient into my distro.
but build fail, reason is the CFLAGS/LDFLAGS in it's Makefile didn't
take effect.
What can I do?
the original makefile is:
CFLAGS += -fno-strict-aliasing
CFLAGS += -std=c89
CFLAGS += -W -Wall
CFLAGS += -O2
CFLAGS += -DENABLE_DEBUG
CFLAGS +=
I have added override in the head of every CFLAGS/LDFLAGS line, but
error still there.
the link order is a common problem.
-Wl,-lrt ntpclient.o phaselock.o -o ntpclient
should be
ntpclient.o phaselock.o -Wl,-lrt ntpclient
Does poky have some option or some solution for that?
(I build it success