Web lists-archives.com

Re: [Mingw-users] troubles compiling the GNU GMP under MinWG




> From: "Euchner, Martin" <martin.euchner@xxxxxxx>
> CC: "mingw-users@xxxxxxxxxxxxxxxxxxxxx" <mingw-users@xxxxxxxxxxxxxxxxxxxxx>
> Date: Mon, 24 Jul 2017 18:13:30 +0000
> 
> Many thanks for the hint.
> Indeed, when I manually -lgmp then all works fine:
> gcc -m32 -O2 -pedantic -fomit-frame-pointer -mtune=sandybridge -march=sandybridge   factorize.c   -o factorize -lgmp
> 
> The -lgmp must be after the .c (or at the very end) but I did not manage to fix the Makefile accordingly. I'm not enough Makefile expert to get this fixed, and I leave to somebody else to fix that in the package.
> 
> Here's the stripped-down Makefile to be fixed:
> CC = gcc
> CFLAGS = -m32 -O2 -pedantic -fomit-frame-pointer -mtune=sandybridge -march=sandybridge

CFLAGS is not the whole story.  There should also be LDFLAGS or LIBES
or something like that, which is specifically used on the link (as
opposed to compilation) command lines.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@xxxxxxxxxxxxxxxxxxxxx?subject=unsubscribe