Statics, FreeBSD
Don Allen
donaldcallen at gmail.com
Sun Apr 7 13:08:23 UTC 2024
On Sunday, 7 April 2024 at 04:58:29 UTC, Jonathan M Davis wrote:
> On Saturday, April 6, 2024 6:35:13 AM MDT Don Allen via
> Digitalmars-d wrote:
[snip]
>
> It would appear that the problem is that the dmd.conf provided
> with dmd for FreeBSD does not have -fPIC in DFLAGS.
>
> My setup puts -fPIC in there, and it's been working just fine
> that way with multiple versions of FreeBSD (since I haven't
> changed it recently), including FreeBSD 14, and when I compare
> my dmd.conf with the one in the download from dlang.org, other
> than path differences, that's the difference.
>
> When I download dmd from dlang.org and put that on my path,
> your example fails as described, whereas it works just fine
> with the dmd that I built locally, and if I edit the dmd.conf
> that comes from dlang.org to include -fPIC, the problem goes
> away. So, it looks like we probably need to fix it so that the
> dmd.conf that's distributed with dmd for FreeBSD needs to have
> -fPIC added to its DFLAGS.
>
> - Jonathan M Davis
I said I was hoping for a useful comment and I got one. Adding
-fPIC to DFLAGS in dmd.conf does indeed fix the problem. Thank
you!
I haven't filed a bug report yet, but will, so it makes it onto
someone's todo list.
More information about the Digitalmars-d
mailing list