From ab5fe01c5be10c2addf24a869962442c77c8da91 Mon Sep 17 00:00:00 2001 From: Philippe Coval Date: Wed, 8 Mar 2017 16:41:08 +0100 Subject: [PATCH] build: Add build dir to LIBPATH globally Cleanup patches might follow. Bug: https://jira.iotivity.org/browse/IOT-1745 Change-Id: I930bc6bcbbf052eddb679ffea9eb8223422f66d0 Signed-off-by: Philippe Coval Reviewed-on: https://gerrit.iotivity.org/gerrit/17559 Tested-by: jenkins-iotivity Reviewed-by: George Nash Reviewed-by: Dan Mihai --- build_common/SConscript | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build_common/SConscript b/build_common/SConscript index 65d17e1..3186930 100644 --- a/build_common/SConscript +++ b/build_common/SConscript @@ -378,7 +378,7 @@ pc_vars = { env.Substfile(pc_file, SUBST_DICT = pc_vars) ###################################################################### -# Setting global CPPDEFINES +# Setting global compiler flags ###################################################################### target_transport = env.get('TARGET_TRANSPORT') with_mq = env.get('WITH_MQ') @@ -387,6 +387,8 @@ with_tcp = env.get('WITH_TCP') rd_mode = env.get('RD_MODE') with_ra_ibb = env.get('WITH_RA_IBB') +env.AppendUnique(LIBPATH = [env.get('BUILD_DIR')]) + if (env.get('WITH_UPSTREAM_LIBCOAP') == '1'): env.AppendUnique(CPPDEFINES = ['WITH_UPSTREAM_LIBCOAP']) -- 2.7.4