1
From: Giovanni Mascellani <gio@debian.org>
2
Subject: fix Makefile so Debian build flags are honoured.
8
tools/Makefile | 4 ++--
9
2 files changed, 3 insertions(+), 3 deletions(-)
11
--- osmpbf.orig/tools/Makefile
12
+++ osmpbf/tools/Makefile
16
-CXXFLAGS = -g -I../include
17
-LDFLAGS = -L../src -lpthread -lz -lprotobuf-lite -losmpbf
18
+CXXFLAGS = $(shell dpkg-buildflags --get CXXFLAGS) -g -I../include
19
+LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS) -L../src -lpthread -lz -lprotobuf-lite -losmpbf
23
--- osmpbf.orig/src/Makefile
24
+++ osmpbf/src/Makefile
29
+CXXFLAGS = $(shell dpkg-buildflags --get CXXFLAGS) -O3
32
all: libosmpbf.a ../include/osmpbf/fileformat.pb.h ../include/osmpbf/osmformat.pb.h