From ea4a5ceda1d457fa7590b95874de2a148bf19ac1 Mon Sep 17 00:00:00 2001 From: Dave Cornejo Date: Sun, 22 Jul 2018 14:21:46 -1000 Subject: [PATCH] Makefile in util directory didn't use LDFLAGS when building binaries This affects installations where the libraries are installed outside the normal library search paths (e.g. FreeBSD puts ports libraries in /usr/local/lib by default, which is not on the default lib path) --- util/Makefile.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/util/Makefile.in b/util/Makefile.in index d8961628..b6581003 100644 --- a/util/Makefile.in +++ b/util/Makefile.in @@ -80,16 +80,16 @@ clean: # APPS clixon_util_xml: clixon_util_xml.c $(MYLIB) - $(CC) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $^ $(LIBS) -o $@ + $(CC) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $^ $(LIBS) -o $@ clixon_util_json: clixon_util_json.c $(MYLIB) - $(CC) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $^ $(LIBS) -o $@ + $(CC) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $^ $(LIBS) -o $@ clixon_util_yang: clixon_util_yang.c $(MYLIB) - $(CC) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $^ $(LIBS) -o $@ + $(CC) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $^ $(LIBS) -o $@ clixon_util_xpath: clixon_util_xpath.c $(MYLIB) - $(CC) $(INCLUDES) $(CPPFLAGS) @CFLAGS@ $^ $(LIBS) -o $@ + $(CC) $(INCLUDES) $(CPPFLAGS) @CFLAGS@ $(LDFLAGS) $^ $(LIBS) -o $@ distclean: clean rm -f Makefile *~ .depend