Skip to content

Commit

Permalink
Makefile: Fixed linker parameter order
Browse files Browse the repository at this point in the history
Object files and libraries should be specified before the output file to
prevent build problems on certain machines (e.g. my machine)
  • Loading branch information
Turbo87 committed Nov 7, 2011
1 parent e148051 commit 5269ebc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ CFLAGS=-O2 -Wall
all: osmfilter osmchange osm2shp

osm2shp: osm2shp.o
$(CPP) $(CFLAGS) -lexpat -lsqlite3 -lshp -lboost_iostreams -o $@ $+
$(CPP) $(CFLAGS) $+ -lexpat -lsqlite3 -lshp -lboost_iostreams -o $@

osmfilter: osmfilter.o
$(CC) $(CFLAGS) -o $@ $+
$(CC) $(CFLAGS) $+ -o $@

osmchange: osmchange.o
$(CC) $(CFLAGS) -o $@ $+
$(CC) $(CFLAGS) $+ -o $@

%.o: %.cc
$(CPP) $(CFLAGS) -c $<
Expand Down

0 comments on commit 5269ebc

Please sign in to comment.