[Scons-users] use C++ compiler for building

Philipp Kraus philipp.kraus at flashpixx.de
Fri Dec 28 14:29:06 EST 2012


Thanks,

I do it like

envlib = env.Clone()
envlib["CC"] = envlib["CXX"]
envlib.sharedlibrary(....)

it should be equal

Phil


Am 28.12.2012 um 20:09 schrieb Matthieu Brucher:


> I don't have the actual solution I'm using in my job, but I think you can do something like SharedLibrary(CC=env["CXX"]).

>

> Cheers,

>

>

> 2012/12/28 Philipp Kraus <philipp.kraus at flashpixx.de>

> This is also my first solution, I my case I clone my default env object change the compiler on the cloned object and call SharedLibrary, but is there a better solution?

>

> Thanks

>

> Phil

>

> Am 28.12.2012 um 16:18 schrieb Matthieu Brucher:

>

>> Hi,

>>

>> I think you could set env['CC'] = env['CXX']

>>

>> Cheers,

>>

>> Matthieu

>>

>>

>>

>> 2012/12/28 Philipp Kraus <philipp.kraus at flashpixx.de>

>> Hello,

>>

>> I build C codes to a shared library with scons, the library codes are stored in *.c files and Scons uses the gcc for compiling the library. The library is written in plain C and can be build also with a C++ compiler for setting some different calls. How can I tell Scons on the env.SharedLibrary command, that the C++ compiler should be used.

>>

>> Thanks

>>

>> Phil

>> _______________________________________________

>> Scons-users mailing list

>> Scons-users at scons.org

>> http://four.pairlist.net/mailman/listinfo/scons-users

>>

>>

>>

>> --

>> Information System Engineer, Ph.D.

>> Blog: http://matt.eifelle.com

>> LinkedIn: http://www.linkedin.com/in/matthieubrucher

>> Music band: http://liliejay.com/

>> _______________________________________________

>> Scons-users mailing list

>> Scons-users at scons.org

>> http://four.pairlist.net/mailman/listinfo/scons-users

>

>

> _______________________________________________

> Scons-users mailing list

> Scons-users at scons.org

> http://four.pairlist.net/mailman/listinfo/scons-users

>

>

>

>

> --

> Information System Engineer, Ph.D.

> Blog: http://matt.eifelle.com

> LinkedIn: http://www.linkedin.com/in/matthieubrucher

> Music band: http://liliejay.com/

> _______________________________________________

> Scons-users mailing list

> Scons-users at scons.org

> http://four.pairlist.net/mailman/listinfo/scons-users


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://four.pairlist.net/pipermail/scons-users/attachments/20121228/72c1e541/attachment.htm>


More information about the Scons-users mailing list