View Single Post
Old 2016-12-25, 00:05   #1
yoyo's Avatar
Oct 2006
Berlin, Germany

23×7×11 Posts
Default compiling a static Linux gmp-ecm version

this is the first time I try to compile gmp-ecm. I need a static linked version optimized for core2.

What is your opinion of my used configure options?

$ ./configure CC="gcc -std=gnu99" CFLAGS="-W -Wall -Wundef -O3 -pedantic -fomit-frame-pointer -m64 -mtune=core2 -march=core2"
$ make LDFLAGS="--static -static-libgcc"
$ strip ecm
$ ldd ecm
        not a dynamic executable
$ ls -l ecm
-rwxrwxr-x 1 yoyoadm yoyoadm 1948104 Dec 25 00:21 ecm
I wasn't able to pass the LDFLAGS to the configure command. But they were used on the make command line.

yoyo is offline   Reply With Quote