Force building with -fPIC.

The debian build wasn't picking up the -fPIC because it sets CXXFLAGS.
This commit is contained in:
Jochen Topf 2013-12-12 22:56:41 +01:00
parent 38323f8a56
commit 81985fec4a
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
PREFIX ?= /usr/local
CXX ?= g++
CXXFLAGS ?= -O3 -fPIC
CXXFLAGS ?= -O3
AR ?= ar
PROTOC ?= protoc
@ -12,7 +12,7 @@ libosmpbf.a: fileformat.pb.o osmformat.pb.o
$(AR) -cr $@ fileformat.pb.o osmformat.pb.o
%.pb.o: %.pb.cc
$(CXX) $(CXXFLAGS) -c -o $@ $<
$(CXX) $(CXXFLAGS) -fPIC -c -o $@ $<
%.pb.cc ../include/osmpbf/%.pb.h: %.proto
$(PROTOC) --proto_path=. --cpp_out=. $<