Package: lbt / 1.2.2-6

compiler-flags Patch series | download
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
31
32
Author: Ralf Treinen <treinen@debian.org>
Description: honour given CFLAGS and CXXFLAGS values, use CPPFLAGS

Index: lbt/Makefile
===================================================================
--- lbt.orig/Makefile	2016-12-06 09:08:11.747876678 +0100
+++ lbt/Makefile	2016-12-06 09:08:29.035953814 +0100
@@ -18,10 +18,10 @@
 
 # GCC (tested with 2.95.4 and 3.0.2)
 CXX=g++
-CXXFLAGS=$(CFLAGS) -fno-exceptions -fno-rtti
+CXXFLAGS+=$(CFLAGS) -fno-exceptions -fno-rtti
 LDFLAGS=
 CC=gcc
-CFLAGS=-O3 -fomit-frame-pointer
+CFLAGS+=-O3 -fomit-frame-pointer
 
 ## Compaq C++ V6.3-011 for Digital UNIX V4.0G (Rev. 1530)
 #CXX=cxx
@@ -60,9 +60,9 @@
 	$(CC) -o $@ $(L2DOBJS) $(LDFLAGS)
 
 .C.o:
-	$(CXX) $(CXXFLAGS) -c $< -o $@
+	$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $< -o $@
 .c.o:
-	$(CC) $(CFLAGS) -c $< -o $@
+	$(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@
 
 .phony: all clean reallyclean install installman
 .SUFFIXES: