[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bignum branch
From: |
Andy Moreton |
Subject: |
Re: bignum branch |
Date: |
Tue, 14 Aug 2018 17:16:46 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1.50 (windows-nt) |
On Tue 14 Aug 2018, Eli Zaretskii wrote:
>> From: Andy Moreton <address@hidden>
>> Date: Tue, 14 Aug 2018 16:11:36 +0100
>>
>> It seems the answer is patch the header manually , or avoid -Og builds.
>
> I think that could be dangerous of the MSYS2 maintainers want GMP to
> be linked statically. A better course of action would be to remove or
> rename libgmp.dll.a. (I understand the annoyance with the warning
> from pacman, but wouldn't it also whine if you modify the header
> file?)
>
>> I have not yet tried an -O2 build to see if that works.
>
> Even if it does, I think one cannot rely on that.
Another approach is to force static linking. I tried setting GMP_LIB on
the configure command line, but that did not seem to propagate to the
resulting Makefile. However, hacking <builddir>/src/Makefile to have
this works:
GMP_LIB = -Wl,-Bstatic -lgmp -Wl,-Bdynamic
That resulted in a binary with statically linked GMP, and where
evaluating "(logcount #xfffffffffffffffffffffffffffff)" does not crash.
AndyM
- Re: bignum branch, (continued)
- Re: bignum branch, Andy Moreton, 2018/08/11
- Re: bignum branch, Eli Zaretskii, 2018/08/11
- Re: bignum branch, Andy Moreton, 2018/08/11
- Re: bignum branch, Eli Zaretskii, 2018/08/12
- Re: bignum branch, Andy Moreton, 2018/08/12
- Re: bignum branch, Eli Zaretskii, 2018/08/13
- Re: bignum branch, Andy Moreton, 2018/08/13
- Re: bignum branch, Eli Zaretskii, 2018/08/14
- Re: bignum branch, Andy Moreton, 2018/08/14
- Re: bignum branch, Eli Zaretskii, 2018/08/14
- Re: bignum branch,
Andy Moreton <=
- Re: bignum branch, Eli Zaretskii, 2018/08/15
- Re: bignum branch, Andy Moreton, 2018/08/11
- Re: bignum branch, Stefan Monnier, 2018/08/10
- Re: bignum branch, Andy Moreton, 2018/08/10
- Re: bignum branch, Eli Zaretskii, 2018/08/10
- Re: bignum branch, Stefan Monnier, 2018/08/08
- Re: bignum branch, Andy Moreton, 2018/08/09
- Re: bignum branch, Eli Zaretskii, 2018/08/08
Re: bignum branch, Tom Tromey, 2018/08/03
Re: bignum branch, Tom Tromey, 2018/08/04