dmd -Wl=comma_separated_linker_flags (cf clang++ -Wl, comma_separated_linker_flags)
Timothee Cour via Digitalmars-d
digitalmars-d at puremagic.com
Sun Dec 11 13:39:26 PST 2016
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20161211/e6bdeb32/attachment.html>
More information about the Digitalmars-d
mailing list