summaryrefslogtreecommitdiff
path: root/meta/recipes-extended/at/files/use-ldflags.patch
blob: 4c698003d04b931968a480f946899269fec4e3d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Upstream-Status: Pending

Ensure use of $LDFLAGS during build
Derived from an OE patch for at-3.1.8

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
--- at-3.1.12.orig/Makefile.in	2009-11-23 07:11:52.000000000 -0800
+++ at-3.1.12/Makefile.in	2010-07-20 16:28:04.000000000 -0700
@@ -65,13 +65,13 @@
 all: at atd atrun
 
 at: $(ATOBJECTS)
-	$(CC) $(CFLAGS) -o at $(ATOBJECTS) $(LIBS) $(LEXLIB)
+	$(CC) $(CFLAGS) -o at $(ATOBJECTS) $(LIBS) $(LEXLIB) $(LDFLAGS)
 	rm -f $(CLONES)
 	$(LN_S) -f at atq
 	$(LN_S) -f at atrm
 
 atd: $(RUNOBJECTS)
-	$(CC) $(CFLAGS) -o atd $(RUNOBJECTS) $(LIBS) $(PAMLIB)
+	$(CC) $(CFLAGS) -o atd $(RUNOBJECTS) $(LIBS) $(PAMLIB) $(LDFLAGS)
 
 y.tab.c y.tab.h: parsetime.y
 	$(YACC) -d parsetime.y