summaryrefslogtreecommitdiff
path: root/chat
diff options
context:
space:
mode:
authorJaroslav Škarvada <jskarvad@redhat.com>2018-04-04 11:29:12 +0200
committerPaul Mackerras <paulus@ozlabs.org>2018-05-28 18:22:44 +1000
commita96702158e72c0d527a146940b983a366dbce464 (patch)
treeb23d32e8db493fd962323d89b367f89b5c4b7207 /chat
parentd34159f417620eb7c481bf53f29fe04c86ccd223 (diff)
downloadppp-a96702158e72c0d527a146940b983a366dbce464.tar.gz
Honor LDFLAGS
This makes the makefiles include $(LDFLAGS) as a parameter when linking executables. Distros use this as a way of applying linker flags across all the executables they build. [paulus@ozlabs.org - supplied the patch description] Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
Diffstat (limited to 'chat')
-rw-r--r--chat/Makefile.linux2
1 files changed, 1 insertions, 1 deletions
diff --git a/chat/Makefile.linux b/chat/Makefile.linux
index 1065ac5..0732ec8 100644
--- a/chat/Makefile.linux
+++ b/chat/Makefile.linux
@@ -18,7 +18,7 @@ INSTALL= install
all: chat
chat: chat.o
- $(CC) -o chat chat.o
+ $(CC) $(LDFLAGS) -o chat chat.o
chat.o: chat.c
$(CC) -c $(CFLAGS) -o chat.o chat.c