From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from WX-Edge.insigma.com.cn (mx.insigma.com.cn [115.236.48.170]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 10999E00507 for ; Mon, 26 Sep 2011 20:50:54 -0700 (PDT) Received: from WX-ExchMB.insigma.com.cn (10.0.1.203) by WX-Edge.insigma.com.cn (10.0.1.205) with Microsoft SMTP Server (TLS) id 8.1.436.0; Tue, 27 Sep 2011 11:50:46 +0800 Received: from [192.168.0.98] (122.224.76.38) by WX-ExchMB.insigma.com.cn (10.0.1.203) with Microsoft SMTP Server id 8.1.240.5; Tue, 27 Sep 2011 11:50:46 +0800 From: Ni Qingliang To: "yocto@yoctoproject.org" Date: Tue, 27 Sep 2011 11:50:11 +0800 In-Reply-To: <1317093523.6536.58.camel@localhost.localdomain> References: <1317093523.6536.58.camel@localhost.localdomain> Organization: Insigma X-Mailer: Evolution 3.0.3 Message-ID: <1317095411.6536.67.camel@localhost.localdomain> MIME-Version: 1.0 Subject: Re: ntpclient compile fail X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: niqingliang@insigma.com.cn List-Id: Discussion of all things Yocto List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 03:50:55 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit 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 on host.) On Tue, 2011-09-27 at 11:18 +0800, Ni Qingliang 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. > > 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 > > all: ntpclient > > test: ntpclient > ./ntpclient -d -r > ntpclient: ntpclient.o phaselock.o > > ntpclient.o phaselock.o: ntpclient.h > > adjtimex: adjtimex.o > > clean: > rm -f ntpclient adjtimex *.o > > -- > Yi Qingliang > niqingliang@insigma.com.cn > http://niqingliang2003.wordpress.com > > > _______________________________________________ > yocto mailing list > yocto@yoctoproject.org > https://lists.yoctoproject.org/listinfo/yocto -- Yi Qingliang niqingliang@insigma.com.cn http://niqingliang2003.wordpress.com