From 7ec4eb46c79879838c9ed9e877f49f18efef7e33 Mon Sep 17 00:00:00 2001 From: Stephen Kitt Date: Sat, 4 May 2019 23:04:46 +0200 Subject: [PATCH] Honour LDFLAGS when linking Most of the build handles flags fine, since it uses the built-in Make rules. However the linking step ignores LDFLAGS, which means some link flags used in Linux distributions are ignored. Signed-off-by: Stephen Kitt --- nulib2/Makefile.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nulib2/Makefile.in b/nulib2/Makefile.in index 948c6bd..b247e97 100644 --- a/nulib2/Makefile.in +++ b/nulib2/Makefile.in @@ -79,7 +79,7 @@ shared:: LIB_PRODUCT="libnufx.so" $(MAKE) -e $(PRODUCT): $(OBJS) $(NUFXLIB) - $(CC) -o $@ $(OBJS) -L$(NUFXSRCDIR) -L$(libdir) -lnufx @LIBS@ + $(CC) $(LDFLAGS) -o $@ $(OBJS) -L$(NUFXSRCDIR) -L$(libdir) -lnufx @LIBS@ clean: -rm -f *.o core