From 804bb1e1d62375f7716d5e9fb496b4bb1410e6b6 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 23 Feb 2009 17:53:13 +0100 Subject: [PATCH] Added -fPIC. --- example-module/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 1.7.10.4