1 From 78585fade2d47fc0aa98b7e2fb494385466007da Mon Sep 17 00:00:00 2001
2 From: babak sarashki <babak.sarashki@windriver.com>
3 Date: Thu, 27 Jun 2019 14:36:59 -0700
4 Subject: [PATCH 1/2] Honor the build system LDFLAGS
8 1 file changed, 3 insertions(+), 2 deletions(-)
10 diff --git a/Makefile b/Makefile
11 index 7b1ea03..7c7e4c7 100755
14 @@ -25,12 +25,13 @@ build: lib fmClientCli
15 $(CXX) $(CCFLAGS) $(INCLUDES) $(EXTRACCFLAGS) -c $< -o $@
18 - $(CXX) -Wl,-soname,$(LIBFMCOMMON_SO).$(MAJOR) -o $(LIBFMCOMMON_SO).$(MAJOR).$(MINOR) -shared $(OBJS) $(EXTRAARFLAGS) ${LDLIBS}
19 + $(CXX) $(LDFLAGS) -Wl,-soname,$(LIBFMCOMMON_SO).$(MAJOR) \
20 + -o $(LIBFMCOMMON_SO).$(MAJOR).$(MINOR) $(OBJS) $(EXTRAARFLAGS) ${LDLIBS}
21 ln -sf $(LIBFMCOMMON_SO).$(MAJOR).$(MINOR) $(LIBFMCOMMON_SO).$(MAJOR)
22 ln -sf $(LIBFMCOMMON_SO).$(MAJOR).$(MINOR) $(LIBFMCOMMON_SO)
24 fmClientCli: $(CLI_OBJS) lib
25 - $(CXX) -o $@ $(CLI_OBJS) -L./ -lfmcommon
26 + $(CXX) $(LDFLAGS) -o $@ $(CLI_OBJS) -L./ -lfmcommon
29 @rm -f $(OBJ) *.o *.so fmClientCli