From 2cd0806c927b3d43b85aa8195a99985fbe4dbc5d Mon Sep 17 00:00:00 2001 From: Jochen Topf Date: Fri, 30 Aug 2013 17:42:14 +0200 Subject: [PATCH] Compile with -fPIC This is needed on 64bit machines when the resulting static library will later be included in a dynamic library. --- src/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Makefile b/src/Makefile index 16c3e97..a735f45 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,6 +1,6 @@ -CXX = g++ -CXXFLAGS = -O3 +CXXFLAGS += -O3 -fPIC + AR = ar all: libosmpbf.a ../include/osmpbf/fileformat.pb.h ../include/osmpbf/osmformat.pb.h