From 450585b74be4d42fa47848b32ab9041d23849773 Mon Sep 17 00:00:00 2001 From: Aditya Agarwal Date: Wed, 6 Sep 2006 04:19:47 +0000 Subject: [PATCH] -- 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 --- test/cpp/Makefile.thrift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.17.1