e1ab3d3766769105d2a001b0e0eacfede7cfcd34
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / at / 0003-Makefile.in-add-LDFLAGS-to-linking-stage.patch
1 From 8720a71757f3626bf3bbc3a7aa2185e6387e5689 Mon Sep 17 00:00:00 2001
2 From: Marc Kleine-Budde <mkl@pengutronix.de>
3 Date: Tue, 1 Dec 2009 20:37:31 +0100
4 Subject: [PATCH 3/5] Makefile.in: add LDFLAGS to linking stage
5
6 The linking stage ignores the LDFLAGS, this breaks if the flex library
7 lives in a non standard location.
8
9 This patch add LDFLAGS to both "at" and "atd" linking stage.
10
11 Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
12 ---
13  Makefile.in |    4 ++--
14  1 files changed, 2 insertions(+), 2 deletions(-)
15
16 diff --git a/Makefile.in b/Makefile.in
17 index dae6b7d..b766bbb 100644
18 --- a/Makefile.in
19 +++ b/Makefile.in
20 @@ -65,13 +65,13 @@ LIST = Filelist Filelist.asc
21  all: at atd atrun
22  
23  at: $(ATOBJECTS)
24 -       $(CC) $(CFLAGS) -o at $(ATOBJECTS) $(LIBS) $(LEXLIB)
25 +       $(CC) $(CFLAGS) $(LDFLAGS) -o at $(ATOBJECTS) $(LIBS) $(LEXLIB)
26         rm -f $(CLONES)
27         $(LN_S) -f at atq
28         $(LN_S) -f at atrm
29  
30  atd: $(RUNOBJECTS)
31 -       $(CC) $(CFLAGS) -o atd $(RUNOBJECTS) $(LIBS) $(PAMLIB)
32 +       $(CC) $(CFLAGS) $(LDFLAGS) -o atd $(RUNOBJECTS) $(LIBS) $(PAMLIB)
33  
34  y.tab.c y.tab.h: parsetime.y
35         $(YACC) -d parsetime.y
36 -- 
37 1.6.5.3
38