Hello Joerg,

I think this is because you need to use -fPIC when compiling the 
individual .cpp files when making the shared library.

e.g. the Mapnik OSM plugin makefile is similar in that it makes a shared 
library:

 CXXFLAGS = `xml2-config --cflags` -I/usr/local/include/mapnik 
-I/usr/include/boost -I/usr/include/freetype2  
-I/home/nick/mapnik-osm/agg/include  -fPIC -g
MAPNIK_OSM_OBJ = osmparser.o osm.o osm_datasource.o osm_featureset.o 
osm.input: $(MAPNIK_OSM_OBJ)     
        g++ -shared -o osm.input $(MAPNIK_OSM_OBJ) 

Nick


_______________________________________________
dev mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/dev

Reply via email to