Hi!

I'm try to build nettle-2.7.1 with static GMP with mingw-w64 toolchain
GCC-4.8.2 and got error while linking with static GMP:

i686-w64-mingw32-gcc -march=i686 -mtune=generic -O2 -pipe
-I/mingw32/include -ggdb3 -Wno-pointer-sign -Wall -W
-Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes
-Wpointer-arith -Wbad-function-cast -Wnested-externs -L.. -pipe
-L/mingw32/lib ecc-mod-test.o testutils.o ../nettle-internal.o
-lhogweed -lnettle -lgmp  -o ecc-mod-test.exe

C:/msys64/mingw32/lib/libgmp.a(sub_n.o):(.text+0x0): multiple
definition of `__gmpn_sub_n'
../libhogweed.dll.a(d000131.o):(.text+0x0): first defined here
collect2.exe: error: ld returned 1 exit status
/msys_repo/mingw-w64-nettle/src/nettle-2.7.1/testsuite/.test-rules.make:167:
recipe for target 'ecc-mod-test.exe' failed
make[1]: *** [ecc-mod-test.exe] Error 1


Is any fix for this?

Regards,
Alexey.
_______________________________________________
nettle-bugs mailing list
[email protected]
http://lists.lysator.liu.se/mailman/listinfo/nettle-bugs

Reply via email to