From: Aditya Agarwal Date: Wed, 6 Sep 2006 04:19:47 +0000 (+0000) Subject: -- search per-user lib dir first X-Git-Tag: 0.2.0~1682 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=450585b74be4d42fa47848b32ab9041d23849773;p=common%2Fthrift.git -- search per-user lib dir first Summary: -- this should fix the library mismatch issue.. From the gcc linking guide: LIBRARY_PATH The value of LIBRARY_PATH is a colon-separated list of directories, much like PATH. When configured as a native compiler, GCC tries the directories thus specified when searching for special linker files, if it can't find them using GCC_EXEC_PREFIX. Linking using GCC also uses these directories when searching for ordinary libraries for the -l option (but directories specified with -L come first). git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664790 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/test/cpp/Makefile.thrift b/test/cpp/Makefile.thrift index 61a5ec9d..9664debb 100644 --- a/test/cpp/Makefile.thrift +++ b/test/cpp/Makefile.thrift @@ -32,7 +32,7 @@ LD = g++ # Compiler flags DCFL = -Wall -O3 -g -I./gen-cpp $(include_flags) -L$(thrift_home)/lib/cpp -lthrift -CFL = -Wall -O3 -I./gen-cpp $(include_flags) -L$(thrift_home)/lib -lthrift +CFL = -Wall -O3 -I./gen-cpp $(include_flags) -L$(thrift_home)/lib/cpp -lthrift all: server client