From: Philippe Coval Date: Mon, 26 Jan 2015 10:08:48 +0000 (+0100) Subject: example: link to libraries using -L flag X-Git-Tag: 1.2.0+RC1~1855^2~205 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f33ec8ccad68fd5324345b29ed38f0580d0ab081;p=platform%2Fupstream%2Fiotivity.git example: link to libraries using -L flag executable will be able to load them from standard paths (/usr/lib*/) Change-Id: I0728c196b766ce55e7185dffb69d9790b5b065c5 Signed-off-by: Philippe Coval Reviewed-on: https://gerrit.iotivity.org/gerrit/246 Tested-by: jenkins-iotivity Reviewed-by: Erich Keane Reviewed-by: John Light Reviewed-by: Sudarshan Prasad (cherry picked from commit b274c49e7e566cb2cb550a6a0946850a15834c6d) Reviewed-on: https://gerrit.iotivity.org/gerrit/262 --- diff --git a/examples/OICMiddle/makefile b/examples/OICMiddle/makefile index 5279218..52c3772 100644 --- a/examples/OICMiddle/makefile +++ b/examples/OICMiddle/makefile @@ -48,11 +48,12 @@ CXX_INC += -I$(OIC_RES)/csdk/logger/include CXX_INC += -I$(OIC_RES)/csdk/libcoap CXX_INC += -I$(OIC_RES)/../extlibs/cereal/include -CXX_LIBS := $(OIC_LIB)/liboc.so -CXX_LIBS += $(OIC_LIB)/liboctbstack.so -CXX_LIBS += $(OIC_LIB)/liboc_logger.so -CXX_LIBS += $(OIC_LIB)/liboc_logger_core.so -CXX_LIBS += $(OIC_LIB)/libcoap.so +CXX_LIBS := -L${OIC_LIB} +CXX_LIBS += -loc +CXX_LIBS += -loctbstack +CXX_LIBS += -loc_logger +CXX_LIBS += -loc_logger_core +CXX_LIBS += -lcoap all: prep_dirs OICMiddle