summaryrefslogtreecommitdiff
path: root/meta/recipes-extended/at/files/use-ldflags.patch
blob: 7d3d91a19a2d04ada30fc1c95b01b22bf4b5018f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Ensure use of $LDFLAGS during build
# Derived from an OE patch for at-3.1.8

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