Feature Request: Dual shared and static builds

Marty Plummer ntzrmtthihu777 at gmail.com
Fri Dec 12 16:22:44 UTC 2014

On 12/10/2014 02:24 AM, Torbj=C3=B6rn Granlund wrote:
 > We build static + shared by default since perhaps 20 years, and
 > furthermore gmp.h is not in any way dependent on this.
Ah, it seems this is solely an issue with a windows compile (or maybe=20
solely a linux-to-windows cross-compile).

configuring with
--host=3Di686-w64-mingw32 --target=3Di686-w64-mingw32 \
--build=3Dx86_64-unknown-linux-gnu --prefix=3D/usr/i686-w64-mingw32 \
--enable-shared --enable-static --enable-cxx

results in the following error message/notification:

configure: error: cannot build both static and DLL, since gmp.h is=20
different for each.
Use "--disable-static --enable-shared" to build just a DLL.

which explicitly says the reasoning for not being able to is gmp.h=20
(probably some wierd macros you need to include for windows)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 884 bytes
Desc: OpenPGP digital signature
URL: <https://gmplib.org/list-archives/gmp-discuss/attachments/20141212/d9cb31ed/attachment.bin>

More information about the gmp-discuss mailing list