| |
 | Posted by H. S. Teoh | Permalink Reply |
|
H. S. Teoh 
| On Mon, May 14, 2012 at 10:18:43PM -0700, Jonathan M Davis wrote:
> 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.
[...]
Ahh, -L--no-warn-search-mismatch is what I'm looking for, thanks!
T
--
Freedom: (n.) Man's self-given right to be enslaved by his own depravity.
|