ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Baz ¤Ñª° <sky_f...@yahoo.com>
Subject Re: Question about cc task...
Date Thu, 26 Feb 2004 22:36:22 GMT
Dominique and all,

It works fine. My mistakes.

However, where can I put CFLAGS in cc tasks?

I cannot find a parameters to do it. Please advice. I am trying to 
put the following into the build:

CFLAGS       = -O2 -Wall -W -Wno-unused-parameter -Wno-long-long -
Wfloat-equal -Wshadow

Thanks

Barry

--- In apache-ant@yahoogroups.com, Dominique Devienne 
<DDevienne@l...> wrote:
> > From: Baz ¤Ñª° [mailto:sky_fox1@y...]
> > How can I include multiple library path in CC task?
> > 
> > I am trying to include libpcap.a from /usr/lib and some other 
libraries
> > from local build/lib directory. Here is my code and what did i 
do wrong?
> > 
> > <target name="compile" depends="prepare">
> >   <cc name="gcc" debug="true" link="executable"
> >       objdir="${outlib.home}"
> >       outfile="${outbin.home}/${app.name}">
> >     <fileset dir="." includes="*.c"/>
> >     <includepath location="../../include" />
> >     <libset dir="../../build/lib" libs="pwcore,pdlb,pcap"/>
> >     <libset dir="/usr/lib" libs="pcap"/>
> >   </cc>
> > </target>
> 
> This looks good to me. What problems do you have exactly?
> Did you try running with -verbose, to see exactly what CppTasks 
executes?
> 
> Could it be the directory is wrong? (not 
${basedir}/../../build/lib?)
> 
> --DD
> 
> PS: Wrong list to post to ;-)
> 
> -------------------------------------------------------------------
--
> To unsubscribe, e-mail: user-unsubscribe@a...
> For additional commands, e-mail: user-help@a...


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message