[osmpbf] 01/11: Force building with -fPIC.

Bas Couwenberg sebastic at xs4all.nl
Sun Mar 16 10:08:44 UTC 2014


This is an automated email from the git hooks/post-receive script.

sebastic-guest pushed a commit to tag v1.3.2
in repository osmpbf.

commit 81985fec4a5cc9a3c41a9e93a1772a0a0aea66af
Author: Jochen Topf <jochen at topf.org>
Date:   Thu Dec 12 22:56:41 2013 +0100

    Force building with -fPIC.
    
    The debian build wasn't picking up the -fPIC because it sets CXXFLAGS.
---
 src/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Makefile b/src/Makefile
index f621b96..4c6f653 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -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=. $<

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/osmpbf.git



More information about the Pkg-grass-devel mailing list