Problematic conflicts between C/C++ and D

Russel Winder <[email protected]>
Newsgroups gmane.comp.programming.tools.scons.devel
Message-ID <[email protected]>
Personally I almost never use the default toolset, but use an explicit list of
tools in every project. So it wasn't until recently that a problem, came to
light.

Some of the C and C++ tools (on Linux I'm not sure about macOS, Windows is not
a factor here) force the shared object suffix to .os from .o. This means that
this is enforced in the default toolset. I am not sure if this causes a
problem for any of the other compilers, but it does for dmd and ldc2, but not
gdc. dmd and ldc2 assume the object suffix is always .o and will not accept
.os. 

Since in the default tools set .os is enforced for $TARGET for shared object
objects because of the action of one C/C++ tool, it breaks the ability to
create shared objects from D sources using dmd and ldc2.

The default toolset is clearly GCC oriented, and I guess this is fine. So the
way out of the problem seems to be not to use $TARGET in the dmd and ldc
tools. Does anyone know where $TARGET gets defined so I can cut and paste into
the dmd and ldc tools avoiding the use of the default suffix?


-- 
Russel.
=============================================================================
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:[email protected]
41 Buckmaster Road    m: +44 7770 465 077   xmpp: [email protected]
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder

_______________________________________________
Scons-dev mailing list
[email protected]
https://pairlist2.pair.net/mailman/listinfo/scons-dev
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEETwDs1X+Beyaiaer41L3V0s7Np7gFAlmdWwAACgkQ1L3V0s7N
p7gsGw//evroBa93CPO+1nhyslV8kU/vkrIU2NJ2Mxes6kl4eBWqN0lb/92zne35
Ze6xyqbAEdN3XywF+pZ+LUCHm+W/t7/Rzu+q8mWfV4Ib2mbotYy2OI3Gy+BMj9ZU
ryJCVJOlVNqDE4HJJMepQeqB1lxDKKDaKTLfHdEt1CkEgeeu3JeZ1HYIY6INrqra
IfgZXYKlLu1a5oIaiOec+1ocnwEiDoBzfglvtVoXL9i2xNhay9EAqYjqkYhzPcCs
GYX+UCaygfjCtsjNWKqtG+at/JBLyPIvGG/4JD+eyLBvAv5bmWiCQbe/qzSOkZr/
OK8nlWu7wjUj9ahUuoO+abZpjkRuEUGqPzc6Xqx1+hhAOQLApIq/FibA9m6/5Q8n
8q/HPphqFYuZBNqgNgbuA4wqxkZ3IDqHC77f98D4rghcbnCeEA7l6Ydm6KzXSoZd
TU7m43cREIrKE3xaZ6PdQnWekYb8CgglBAbuX+H5eJ5AB8Zw6UpvvsPF13/xwyZq
nhsNM2nSOkuRqceOYdCteC/V+xip+ZvW+g9WK944wC1YGM5NpS1BXjHYd9Ot+Saf
17ko1jGyqx0Pe1uQI0wsiXJsdRIzU1tdWIxRb6oKvNor5BxfXBnKB9r/soQ/LFme
dDk2WIJtO2S+QjGkFoQeqILJIH5R1PaGortcKHpztHvY0Kobeik=
=7rMY
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.