-lz parameter to avoid error message

error message was: undefined reference to `gzopen'
This commit is contained in:
Stefan Dangl 2015-12-08 17:45:01 +01:00
parent 09363a2035
commit 5c3bae20e2

View file

@ -43,10 +43,11 @@ find_osmconvert() {
OSMCONVERT="${OSMCONVERT:-$HOME/osmctools/osmconvert}"
if [ ! -x "$OSMCONVERT" ]; then
OSMCONVERT="$INTDIR/osmconvert"
echo "compiling osmconvert"
if [ -e "$OMIM_PATH/tools/osmctools/osmconvert.c" ]; then
cc -x c -lz -O3 "$OMIM_PATH/tools/osmctools/osmconvert.c" -o "$OSMCONVERT"
cc -x c -O3 "$OMIM_PATH/tools/osmctools/osmconvert.c" -o "$OSMCONVERT" -lz
else
curl -s https://raw.githubusercontent.com/mapsme/osmctools/master/osmconvert.c | cc -x c - -lz -O3 -o $OSMCONVERT
curl -s https://raw.githubusercontent.com/mapsme/osmctools/master/osmconvert.c | cc -x c - -O3 -o $OSMCONVERT -lz
fi
fi
}
@ -89,6 +90,7 @@ if [ -f "$COASTS" ]; then
cp "$COASTS" "$INTDIR/WorldCoasts.geom"
GENERATE_EVERYTHING="$GENERATE_EVERYTHING --emit_coasts=true --split_by_polygons=true"
fi
echo "src type: $SOURCE_TYPE"
# Convert everything to o5m
if [ "$SOURCE_TYPE" == "pbf" -o "$SOURCE_TYPE" == "bz2" -o "$SOURCE_TYPE" == "osm" ]; then
find_osmconvert