From 7e1d782b070dad53ab00687a8d2f6a943086d9f9 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Sun, 12 Feb 2012 14:21:56 +0100 Subject: [PATCH] use absolute path for linking with OS X .dylib --- miniupnpc/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/miniupnpc/Makefile b/miniupnpc/Makefile index 6887f95..b0e1072 100644 --- a/miniupnpc/Makefile +++ b/miniupnpc/Makefile @@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.85 2012/01/10 14:28:19 nanard Exp $ +# $Id: Makefile,v 1.90 2012/02/12 00:15:36 nanard Exp $ # MiniUPnP Project # http://miniupnp.free.fr/ # (c) 2005-2011 Thomas Bernard @@ -177,7 +177,8 @@ $(LIBRARY): $(LIBOBJS) $(SHAREDLIBRARY): $(LIBOBJS) ifeq ($(OS), Darwin) - $(CC) -dynamiclib $(LDFLAGS) -Wl,-install_name,$(SONAME) -o $@ $^ +# $(CC) -dynamiclib $(LDFLAGS) -Wl,-install_name,$(SONAME) -o $@ $^ + $(CC) -dynamiclib $(LDFLAGS) -Wl,-install_name,$(INSTALLDIRLIB)/$(SONAME) -o $@ $^ else $(CC) -shared $(LDFLAGS) -Wl,-soname,$(SONAME) -o $@ $^ endif