Ok I found out that you can ADD copts to the sources that are being compiled
into the library by doing the following.
Pkg.addLibrary("lib/Video_Copy", targ).addObjects(SRCS, {copts: "-o3 -pm
-op2"});
However this only adds and does replace the original copts. So I'm not sure
if having a -o2 and -o3 which one the compiler will use.
Thoughts?
Josh
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
om] On Behalf Of Joshua Hintze
Sent: Friday, February 08, 2008 11:52 AM
To: [email protected]
Subject: Copts in Package.bld in codecs
I didn't hear anything in my last message it might have been ignored since I
changed what was the original topic. This is my problem.
How can I change the cl6x compiler switches that are defaulted in the Codec
Engine when using package.bld.
For example I want to add a couple like: -pm -op2 and change -o2 to -o3.
You can do this in the Pkt.addExecutable by specifying extraAttrs but I
don't see how to do this with the Pkg.addLibrary.example
Pkg.addExecutable(platShort + '/' + name + '_' + cfg, targ, plat, {
copts: compileOpts,
cfgScript: cfg + suffix,
cfgArgs: "{platform: \"" + plat + "\"}",
lopts: "-l /home/harsha/dvevm_1_20/cgtools/lib/dsplib64plus.lib",
}).addObjects(srcs);
With the above we can change copts and lopts but this is ran when creating
an executable not a library.
Thanks,
Josh
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source