Hi Andy,
You can try this:
In package.bld, set the lopts (linker options) in the addExecutable
call:
....
if (targ.os == "Linux") {
libraries = "-lm";
}
else {
libraries = "";
}
Pkg.addExecutable(name, targ, plat, {
cfgScript: cfg,
lopts: libraries,
....
Fyi, there is also something called copts that allows you to set
compiler flags.
Alternatively, if you are more comfortable with makefiles, you can take
a look at the video_copy/dualcpu example to see how you can directly
specify -lm, etc. next to the rule for app.out, where -lphread is
specified.
Best regards,
Vincent
________________________________
From: Andy Ngo [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 25, 2007 2:16 PM
To: Wan, Vincent
Cc: davinci-linux-open-source
Subject: Re: Linking/mapping data to IRAM or L1SDRAM on the DSP
Hi Vincent,
Thanks for you help. I have another question that maybe you can help.
I want to add
a library (i.e. mylib.a) to the ARM application but I couldn't figure it
out. I know I need
to modify the package.bld file. For example, in the
dvevm_1_10/codec_engine_1_02/examples/apps/speech_copy folder, I see all
the
source files are added in package.bld via Pkg.addobjects). How do I add
my library
and other system libraries (like -lm -lc -ldl -rt). Otherwise, I have
to manually modify
the package.mak that automatically gets generated (my changes get wiped
out if I
modify package.bld again).
Thanks!
Regards,
Andy
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source