pkgsrc/meta-pkgs/boost/patches/patch-ae
jmmv 6939e1e3ed Fix installed name of Boost libraries under Mac OS X. They need to have
the directory they'll live in as part of their name, or otherwise they
cannot be found at runtime.
2006-01-21 10:12:40 +00:00

21 lines
947 B
Text

$NetBSD: patch-ae,v 1.4 2006/01/21 10:12:40 jmmv Exp $
--- tools/build/v1/darwin-tools.jam.orig 2005-05-11 08:15:20.000000000 +0200
+++ tools/build/v1/darwin-tools.jam
@@ -149,6 +149,7 @@ if -bind_at_load in $(.LINKFLAGS)
.LINKFLAGS = [ difference $(.LINKFLAGS) : -bind_at_load ] ;
}
flags darwin LINKFLAGS : $(.LINKFLAGS) ;
+flags darwin LINKFLAGS : -flat_namespace -undefined suppress ;
#### Link ####
@@ -187,7 +188,7 @@ actions darwin-Link-DyLib-action bind NE
&& \
$(.GCC_BIN_DIR)$(.GXX) $(LINKFLAGS) -o "$(<[1])" "$(<[1]:S=.lo)" \
-F$(FRAMEWORKS:D) -framework$(_)$(FRAMEWORKS:D=) \
- -L"$(LIBPATH:T)" -L"$(STDLIBPATH:T)" "$(NEEDLIBS)" "$(NEEDLIBS)" -l$(FINDLIBS) -dynamiclib -install_name "$(<[1]:D=:S=.dylib)" \
+ -L"$(LIBPATH:T)" -L"$(STDLIBPATH:T)" "$(NEEDLIBS)" "$(NEEDLIBS)" -l$(FINDLIBS) -dynamiclib -install_name "$(TARGET_LIBDIR)/$(<[1]:D=:S=.dylib)" \
&& \
rm -f "$(<[1]:S=.lo)"
}