From 826d9d47ad3261bc33c465d1b6bf56dd0834be3e Mon Sep 17 00:00:00 2001 From: Mike Fleetwood Date: Sat, 20 Sep 2014 11:31:12 +0100 Subject: [PATCH] README: Correct env variables to build using specific libparted version CPPFLAGS - Needed to instruct the compiler to use libparted include files, 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. --- README | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README b/README index bcc136f5..d6be5a24 100644 --- a/README +++ b/README @@ -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".