From 37b6344cb60ca7b2132358a6156ff90f280b505b Mon Sep 17 00:00:00 2001 From: Joseph Morrow Date: Wed, 22 Apr 2015 14:33:36 -0400 Subject: [PATCH] Added rpath location to C++ SDK sample applications build. By adding the "run-time search path" to the build flags, this tells the application where to search for the needed libraries at run time. This removes the need to export the output directory for the libraries into LD_LIBRARY_PATH when executing the sample applications. Change-Id: Ic0c35cd0f79d35e7e89113735e9f9a23c6466943 Signed-off-by: Joseph Morrow Reviewed-on: https://gerrit.iotivity.org/gerrit/809 Tested-by: jenkins-iotivity Reviewed-by: Erich Keane --- resource/examples/SConscript | 1 + 1 file changed, 1 insertion(+) diff --git a/resource/examples/SConscript b/resource/examples/SConscript index b72435a..1be8651 100644 --- a/resource/examples/SConscript +++ b/resource/examples/SConscript @@ -49,6 +49,7 @@ if target_os not in ['windows', 'winrt']: examples_env.AppendUnique(LIBS = ['-lpthread']) examples_env.AppendUnique(LIBPATH = [env.get('BUILD_DIR')]) +examples_env.AppendUnique(RPATH = [env.get('BUILD_DIR')]) examples_env.PrependUnique(LIBS = ['oc', 'octbstack', 'oc_logger', 'connectivity_abstraction', 'coap']) if env.get('SECURED') == '1': examples_env.AppendUnique(LIBS = ['tinydtls']) -- 2.7.4