question 1:
is there a way to pass linker flags?
dmd -Wl=comma_separated_linker_flags
eg:
dmd -Wl=-lbar,-Ldir,--export-dynamic,-pie
(same functionality as clang++ -Wl,-lbar,-Ldir,--export-dynamic,-pie)
If not could we support it? Would make a lot of things easier.
question 2:
Furthermore, on linux, not sure I can pass the -pie flag to dmd ; currently
this works:
```
dmd -of=${filelib}.o -c ${FLAGS} fun.d
clang++ -o ${filelib} -pie ${filelib}.o -Wl,-lphobos2,--export-dynamic
```
but not:
dmd -of=${filelib} ${FLAGS} -L-pie -L--export-dynamic fun.d
with question 1 solved, this should automatically work via:
dmd -of=${filelib} ${FLAGS} -Wl=-pie,--export-dynamic fun.d