Correct dmd.conf for having both 32- and 64-bit versions of druntime/phobos?

Jonathan M Davis jmdavisProg at gmx.com
Mon May 14 22:18:43 PDT 2012


On Monday, May 14, 2012 22:14:22 H. S. Teoh wrote:
> For various testing purposes, I started keeping both 32-bit and 64-bit
> versions of druntime/phobos around. However, I don't know how to tell
> dmd to look for the appropriate path depending on whether -m32 or -m64
> was specified; the only way I've managed to get this to work was to
> specify in dmd.conf paths to both generated/linux/release/32 and
> generated/linux/release/64, but this causes spurious warnings during
> link time about one or the other libphobos.a being skipped due to
> incompatible architecture.
> 
> Why doesn't dmd just take the base path and automatically search the
> 32/64 bit subdirectories for libphobos.a? Or how do I coax it to do so?

I believe that the default dmd.conf has this in it

-L-L%@P%/../lib64 -L-L%@P%/../lib32 -L--no-warn-search-mismatch

Note that _both_t lib32 and lib64 are included, and -L--no-warn-search-
mismatch gets rid of the warnings that you're talking about.

- Jonathan M Davis


More information about the Digitalmars-d mailing list