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 <steve@sk2.org>
This commit is contained in:
Stephen Kitt 2019-05-04 23:04:46 +02:00
parent 21a10ad266
commit 7ec4eb46c7
No known key found for this signature in database
GPG Key ID: 80D302F5886D839C
1 changed files with 1 additions and 1 deletions

View File

@ -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