Post
Topic
Board Announcements (Altcoins)
Re: [XPM] [ANN] Primecoin High Performance | HP12 released
by
mikaelh
on 05/04/2014, 08:27:08 UTC

Yes, that will install the latest version of GMP in /usr/local. However, you then need to use some special flags to link against it. Here's a snippet from my Linux compilation guide which modifies makefile.unix.

Code:
cp makefile.unix makefile.my
sed -i -e 's/$(OPENSSL_INCLUDE_PATH))/$(OPENSSL_INCLUDE_PATH) \/usr\/local\/include)/' makefile.my
sed -i -e 's/$(OPENSSL_LIB_PATH))/$(OPENSSL_LIB_PATH) \/usr\/local\/lib)/' makefile.my
sed -i -e 's/$(LDHARDENING) $(LDFLAGS)/$(LDHARDENING) -Wl,-rpath,\/usr\/local\/lib $(LDFLAGS)/' makefile.my

After that run "make -f makefile.my clean" and then "make -f makefile.my".