Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Makefile: Added proper CXXFLAGS for parsing large files

Parsing the 14 GB planet.osm.pbf fails without these flags.
  • Loading branch information...
commit c550a3f79df8cdf507845c872e79f00cf2b53a06 1 parent fe3b92c
@Turbo87 Turbo87 authored
Showing with 6 additions and 5 deletions.
  1. +6 −5 Makefile
View
11 Makefile
@@ -1,6 +1,7 @@
-CPP=g++
-CC=gcc
-CFLAGS=-O2 -Wall -Wredundant-decls
+CPP = g++
+
+CXXFLAGS = -ggdb -Wall -Wredundant-decls
+CXXFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
all: osm2shp
@@ -15,10 +16,10 @@ FILES = \
osm/point_database.o
osm2shp: $(FILES)
- $(CPP) $(CFLAGS) $+ -lexpat -lsqlite3 -lshp -lboost_iostreams $(LIB_PROTOBUF) $(LIB_SHAPE) -o $@
+ $(CPP) $(CXXFLAGS) $+ -lexpat -lsqlite3 -lshp -lboost_iostreams $(LIB_PROTOBUF) $(LIB_SHAPE) -o $@
%.o: %.cc
- $(CPP) $(CFLAGS) -c $< -o $@
+ $(CPP) $(CXXFLAGS) -c $< -o $@
clean:
rm -f $(FILES) osm2shp
Please sign in to comment.
Something went wrong with that request. Please try again.