From: Adam Dickmeiss Date: Mon, 23 Feb 2009 16:53:13 +0000 (+0100) Subject: Added -fPIC. X-Git-Tag: v1.0.16~19^2~2 X-Git-Url: http://git.indexdata.com/?a=commitdiff_plain;h=804bb1e1d62375f7716d5e9fb496b4bb1410e6b6;p=metaproxy-moved-to-github.git Added -fPIC. --- diff --git a/example-module/Makefile b/example-module/Makefile index 8264d16..63810a2 100644 --- a/example-module/Makefile +++ b/example-module/Makefile @@ -4,10 +4,10 @@ SO=metaproxy_filter_myfilter.so all: $(SO) $(SO): filter_myfilter.cpp - $(CXX) -shared `$(CONFIG) --cflags` -I ../src $< -o $(SO) ../src/.libs/libmetaproxy.so -ldl + $(CXX) -shared `$(CONFIG) --cflags` -fPIC -I ../src $< -o $(SO) ../src/.libs/libmetaproxy.so -ldl clean: - rm *.so + rm -f *.so run: all ../src/metaproxy -c config.xml