File: 40_use_cppflags.diff

package info (click to toggle)
openvpn-auth-radius 2.1-9%2Bdeb13u1
  • links: PTS, VCS
  • area: main
  • in suites: trixie, trixie-proposed-updates
  • size: 1,744 kB
  • sloc: cpp: 8,579; perl: 323; makefile: 46
file content (30 lines) | stat: -rw-r--r-- 660 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Description: Respect CPPFLAGS
Origin: vendor
Forwarded: no
Last-Update: 2018-10-28

--- openvpn-auth-radius-2.1.orig/Makefile
+++ openvpn-auth-radius-2.1/Makefile
@@ -1,4 +1,4 @@
-CC=g++
+CXX=g++
 
 
 
@@ -33,13 +33,13 @@ OBJECTS=\
 all: $(PLUGIN)
 
 $(PLUGIN): $(OBJECTS)
-	$(CC) $(CFLAGS) $(OBJECTS) -o $(PLUGIN) $(LDFLAGS) $(LIBS)
+	$(CXX) $(CFLAGS) $(OBJECTS) -o $(PLUGIN) $(LDFLAGS) $(LIBS)
 
 %.o: %.cpp
-	$(CC) $(INCL) $(CFLAGS) -o $@ -c $<
+	$(CXX) $(INCL) $(CPPFLAGS) $(CFLAGS) -o $@ -c $<
 
 test: $(OBJECTS)
-	$(CC) -Wall $(OBJECTS) -o main $(LDFLAGS) $(LIBS)
+	$(CXX) -Wall $(OBJECTS) -o main $(LDFLAGS) $(LIBS)
 
 clean:
 	-rm $(PLUGIN) *.o */*.o