How to add a path to LDFLAGS

后端 未结 2 681
南方客
南方客 2020-12-28 19:26

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

2条回答
  •  無奈伤痛
    2020-12-28 20:06

    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.

提交回复
热议问题