File: getltscfg-makefile-flags

package info (click to toggle)
ltsp 5.5.4-4
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 5,440 kB
  • ctags: 359
  • sloc: sh: 5,106; ansic: 1,590; perl: 280; python: 197; makefile: 171; lex: 152; yacc: 59
file content (17 lines) | stat: -rw-r--r-- 587 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Ensure LDFLAGS and CPPFLAGS are respected when building getltscfg, otherwise 
some hardened build flags are ignored.

Index: ltsp-trunk/client/getltscfg/Makefile
===================================================================
--- ltsp-trunk.orig/client/getltscfg/Makefile	2012-05-26 18:27:21.089483000 -0700
+++ ltsp-trunk/client/getltscfg/Makefile	2012-05-26 18:27:53.321234525 -0700
@@ -6,8 +6,7 @@
 LIBS=-lfl -lpopt
 ##LIBS=-lfl -ll -lpopt
 YFLAGS=-v -d
-LDFLAGS=
-CCFLAGS=-W -Wall $(CFLAGS)
+CCFLAGS=-W -Wall $(CFLAGS) $(CPPFLAGS)
 
 getltscfg:	getltscfg.o		\
 		parser.tab.o		\