Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add a path to LDFLAGS

Tags:

gnu

mingw32

gmp

I'm trying to set up a library called PBC (Pairing-based cryptography). And this library requires another library called GMP -(GNU Multiple-Precision Library).

My problem is after installing GMP correctly, PBC gives an error of:

gmp library not found add its path to LDFLAGS

I have no idea what LDFLAGS is and how to add it to the path.

PS: I'm using MinGW.

like image 553
Giuseppe Avatar asked Jun 06 '11 15:06

Giuseppe


1 Answers

The question is not really descriptive enough for anyone to answer well, but....

On a Unix-based system you would likely do something like this:

$ export LDFLAGS="-R/the/path/to/the/gmp/lib -L/the/path/to/the/gmp/lib"
$ ./configure
$ make
$ make install

Windows environments with GNU make tools, will need minor tweaks.

like image 189
spkane Avatar answered Nov 01 '22 23:11

spkane