afb/wxd — Issue #6: building Minimal sample fails
Author: gour
Created: 2012-02-04 20:29:56+00:00
State: open

Hello!

Attempt to build Minimal sample fails with:

```
[gour@atmarama Minimal] make COMPILER=DMD LIBRARY=Phobos DFLAGS+=-d -f GNUmakefile
dmd -version=wx28 -version=__WXGTK__ -version=UNICODE -I../.. -d -c -ofMinimal.o Minimal.d
dmd -of../../bin/Minimal Minimal.o ../../libwxd.a ../../libwxc.a -L-Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu -L-lwx_gtk2u_richtext-2.8 -L-lwx_gtk2u_aui-2.8 -L-lwx_gtk2u_xrc-2.8 -L-lwx_gtk2u_qa-2.8 -L-lwx_gtk2u_html-2.8 -L-lwx_gtk2u_adv-2.8 -L-lwx_gtk2u_core-2.8 -L-lwx_baseu_xml-2.8 -L-lwx_baseu_net-2.8 -L-lwx_baseu-2.8 -L-lstdc++
/usr/bin/ld: unrecognized option '-Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu'
/usr/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
--- errorlevel 1
make: *** [../../bin/Minimal] Error 1
```

Here is the wx-config output:

```
[gour@atmarama Minimal] wx-config --libs
-pthread -Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu -lwx_gtk2u_richtext-2.8 -lwx_gtk2u_aui-2.8 -lwx_gtk2u_xrc-2.8 -lwx_gtk2u_qa-2.8 -lwx_gtk2u_html-2.8 -lwx_gtk2u_adv-2.8 -lwx_gtk2u_core-2.8 -lwx_baseu_xml-2.8 -lwx_baseu_net-2.8 -lwx_baseu-2.8
```

Any idea what's wrong?