From 4c525e0e25056287cae77d21fda0d545ae5be85a Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Fri, 13 Jun 2014 12:57:35 +0200 Subject: [PATCH] Makefile tweaks for helloworld template plugin - Do not force use of clang++ to build the plugin (broken on recent debian and derivates: https://bugs.debian.org/643959) - Do not force clean on install - Use -fPIC to build objects (or g++ complains) --- plugins/input/templates/helloworld/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/input/templates/helloworld/Makefile b/plugins/input/templates/helloworld/Makefile index 2caf7fcc9..962f176fe 100644 --- a/plugins/input/templates/helloworld/Makefile +++ b/plugins/input/templates/helloworld/Makefile @@ -1,6 +1,6 @@ -CXX = clang++ +# To use clang, run: make CXX=clang++ -CXXFLAGS = $(shell mapnik-config --cflags) +CXXFLAGS = $(shell mapnik-config --cflags) -fPIC LIBS = $(shell mapnik-config --libs --ldflags --dep-libs) @@ -27,4 +27,4 @@ clean: deploy : all cp hello.input $(shell mapnik-config --input-plugins) -install: clean all deploy \ No newline at end of file +install: all deploy