Knud Soerensen wrote:

When trying to compile wxd test cases on ubuntu, dmd fails in the following way:

dmd -of../../bin/Controls Controls.o ../../libwxd.a ../../libwxc.a -L-Wl,-Bsymbolic-functions -L-lwx_gtk2u_xrc-2.6 -L-lwx_gtk2u_qa-2.6 -L-lwx_gtk2u_html-2.6 -L-lwx_gtk2u_adv-2.6 -L-lwx_gtk2u_core-2.6 -L-lwx_baseu_xml-2.6 -L-lwx_baseu_net-2.6 -L-lwx_baseu-2.6 -L-lstdc++
/usr/bin/ld: unrecognized option '-Wl,-Bsymbolic-functions'
/usr/bin/ld: use the --help option for usage information

...

It seems like dmd forget to remove -Wl or insert a -Xlinker to much.

Is this a bug or can I fix it my self ?

Chances are good that "-Wl,-Bsymbolic-functions" needs to be
filtered out from the "DMDLIBS": look in Configs/config.Linux

It's already filtering out -pthread, so that would be where.
It won't affect the regular GDC linking, so should be good...

--anders

Reply via email to