[yocto] ntpclient compile fail

Ni Qingliang niqingliang at insigma.com.cn
Tue Sep 27 18:00:32 PDT 2011


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 +0800, McClintock Matthew-B29882 wrote:
> On Mon, Sep 26, 2011 at 10:18 PM, Ni Qingliang
> <niqingliang at 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 in the recipe? Can you point us at a copy of the
> recipe you are using?
> 
> -M

-- 
Yi Qingliang
niqingliang at insigma.com.cn
http://niqingliang2003.wordpress.com

-------------- next part --------------
DESCRIPTION = "ntpclient"
SECTION = "iotproduct"
LICENSE = "Google"
LIC_FILES_CHKSUM = "file://README;md5=098a6a289094e42f974b11e2151f5644"
PR = "r0"
PV = "2010_365"


SRC_URI = "http://doolittle.icarus.com/ntpclient/ntpclient_${PV}.tar.gz \
           file://Makefile"

S = "${WORKDIR}/${PN}-2010"

do_patch () {
	cp -f ${WORKDIR}/Makefile ${S}/
}

do_compile () {
	oe_runmake
}

do_install () {
	install -d ${D}/bin/
	install -m 0755 ${S}/ntpclient ${D}/bin/
}

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile
Type: text/x-makefile
Size: 1016 bytes
Desc: Makefile
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20110928/949c5e1a/attachment.bin>


More information about the yocto mailing list