From a28906b37e77689e7f42f22c58da8e61acc794e6 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 17 Dec 2008 10:09:53 +0100 Subject: [PATCH] Avoid -nostdlib option for CXX invocation --- example-module/Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/example-module/Makefile b/example-module/Makefile index b966052..8264d16 100644 --- a/example-module/Makefile +++ b/example-module/Makefile @@ -1,9 +1,13 @@ CONFIG=../../yazpp/yazpp-config SO=metaproxy_filter_myfilter.so + +all: $(SO) + $(SO): filter_myfilter.cpp - $(CXX) -shared -nostdlib `$(CONFIG) --cflags` -I ../src $< -o $(SO) ../src/.libs/libmetaproxy.so + $(CXX) -shared `$(CONFIG) --cflags` -I ../src $< -o $(SO) ../src/.libs/libmetaproxy.so -ldl clean: - rm $(SO) -run: $(SO) + rm *.so + +run: all ../src/metaproxy -c config.xml -- 1.7.10.4