README: Correct env variables to build using specific libparted version

CPPFLAGS - Needed to instruct the compiler to use libparted include
files, <parted/parted.h> etc, from the non-default location.

LD_LIBRARY_PATH - Not needed to specify an additional directory to find
libparted shared libraries at run time, as the linker build the
additional directory into the executable based on the LD_RUN_PATH
environment variable.
This commit is contained in:
Mike Fleetwood 2014-09-20 11:31:12 +01:00
parent a1ea76b51a
commit 826d9d47ad
1 changed files with 4 additions and 3 deletions

7
README
View File

@ -153,11 +153,12 @@ c. Building using a Specific (lib)parted Version
Extract parted tarball, configure, make, and sudo make install.
Note that by default this will install into /usr/local.
3) Set library environment variables to look in /usr/local/lib.
3) Set environment variables to inform the GParted build system to
use libparted from /usr/local:
export LD_LIBRARY_PATH=/usr/local/lib
export LD_RUN_PATH=/usr/local/lib
export CPPFLAGS=-I/usr/local/include
export LDFLAGS=-L/usr/local/lib
export LD_RUN_PATH=/usr/local/lib
4) Build gparted using steps listed above in "Building from Source".