mirror of https://github.com/fadden/nulib2.git
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:
parent
21a10ad266
commit
7ec4eb46c7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue