Adding object files to dub build?
Jesse Phillips
Jesse.K.Phillips+D at gmail.com
Mon Jan 13 12:48:08 PST 2014
I have a pre-built sqlite3 object file which I'd like to include
as part of the linking for the final executable. I have been
unable to find a way to do this with dub.
I have attempted adding:
"sourceFiles": ["csqlite3.obj"],
This doesn't work since it is added to the compile stage, and
there is nothing to be done. It appears it will not be included
in the temp.obj created at this stage.
I also tried:
"lflags": ["csqlite3.obj"],
I'm surprised that this doesn't work, it is added to dmd's
command line as "-Lcsqlite3.obj" which I would think the linker
should pick up.
I was able to build the executable without missing symbols by
taking the temp.obj and combining it with the csqlite3.obj
dmd .\temp.obj .\csqlite3.obj
------
The follow up to this request is that I can't add flags to the
link step, so that I could get verbose output of the link step.
More information about the Digitalmars-d-learn
mailing list