Jeff Gray <[EMAIL PROTECTED]> writes:

> I am trying to compile Boost against the uClibc libraries. This
> requires that I define a custom value for LD_LIBRARY_PATH, so that my
> uClibc libraries are used instead of the standard system libraries.
>
> The problem I have is that building Boost.Python generates its own
> LD_LIBRARY_PATH definition that points to my Python library directory
> only. This results in the following unpleasant result:

Jeff, 

Could you try the enclosed patch and let me know how it works out?

? generators.new.py
? generators.old.py
? generators.py
? examples-v2/hello/bin
? examples-v2/hello/links
? jam_src/bin.cygwinx86
? jam_src/bin.ntx86
? jam_src/bin.ntx86.debug
? jam_src/bootstrap.gcc
? jam_src/bootstrap.msvc
? jam_src/bootstrap.vc7
? jam_src/vc60.pdb
? jam_src/vc70.pdb
? jam_src/yyacc.x
? test/test.jam
? test/test_results.txt
Index: boost-base.jam
===================================================================
RCS file: /cvsroot/boost/boost/tools/build/boost-base.jam,v
retrieving revision 1.85
diff -w -u -w -d -u -r1.85 boost-base.jam
--- boost-base.jam	13 Jul 2003 16:09:08 -0000	1.85
+++ boost-base.jam	13 Aug 2003 12:16:26 -0000
@@ -239,13 +239,18 @@
 if $(UNIX)
 {
     RUN_LD_LIBRARY_PATH ?= $($(gSHELL_LIBPATH)) ;
+    gAPPEND_LD_LIBRARY_PATH = ":$"$(gSHELL_LIBPATH) ;
+    gAPPEND_PATH = ":$"PATH ;
 } 
 if $(NT)
 {
     # Try some other likely spellings
     RUN_PATH ?= $(Path) ;
     RUN_PATH ?= $(path) ;
+    gAPPEND_LD_LIBRARY_PATH = ";%LD_LIBRARY_PATH%" ;
+    gAPPEND_PATH =  ";%PATH%" ;
 }
+
 # Now set this, just in case someone tries to use it.
 PATH = $(RUN_PATH) ;
 if $(UNIX)
Index: gcc-tools.jam
===================================================================
RCS file: /cvsroot/boost/boost/tools/build/gcc-tools.jam,v
retrieving revision 1.72
diff -w -u -w -d -u -r1.72 gcc-tools.jam
--- gcc-tools.jam	11 Jul 2003 16:05:42 -0000	1.72
+++ gcc-tools.jam	13 Aug 2003 12:16:26 -0000
@@ -400,7 +400,7 @@
 # for gcc, we repeat all libraries so that dependencies are always resolved
 actions gcc-Link-action bind NEEDLIBS NEEDIMPS
 {
-    $(SHELL_SET)$(gSHELL_LIBPATH)=$(RUN_LD_LIBRARY_PATH)
+    $(SHELL_SET)$(gSHELL_LIBPATH)=$(RUN_LD_LIBRARY_PATH)$(gAPPEND_LD_LIBRARY_PATH) ;
     $(SHELL_EXPORT)$(gSHELL_LIBPATH)
     $(.GXX[1]:R=$(GCC_BIN_DIR)) $(.GXX[2-]) $(IMPLIB_COMMAND)$(<[2]) $(LINKFLAGS) -o "$(<[1])$(OUTTAG)" -L"$(LIBPATH:T)" -L"$(STDLIBPATH:T)" "$(>)" "$(NEEDLIBS)" "$(NEEDLIBS)" "$(IMPLIB_FLAGS)$(NEEDIMPS)" -l$(FINDLIBS) $(LNOPT)$(RPATH_LINK). $(LNOPT)$(SONAME)$(<[1]:D=)$(SOTAG)
     $(ACTION_1)$(LN)$(SPACE)-fs$(SPACE)"$(<[1]:D=)$(OUTTAG)"$(SPACE)"$(<[1])"
Index: python.jam
===================================================================
RCS file: /cvsroot/boost/boost/tools/build/python.jam,v
retrieving revision 1.58
diff -w -u -w -d -u -r1.58 python.jam
--- python.jam	31 May 2003 13:48:14 -0000	1.58
+++ python.jam	13 Aug 2003 12:16:26 -0000
@@ -397,15 +397,8 @@
     }    
 }
 
-if $(UNIX)
-{
-    gAPPEND_LD_LIBRARY_PATH = ":$"$(gSHELL_LIBPATH) ;
-    gAPPEND_PATH = ":$"PATH ;
-}
-else if $(NT)
+if $(NT)
 {
-    gAPPEND_LD_LIBRARY_PATH = "" ;
-    gAPPEND_PATH =  ";%PATH%" ;
     PYTHON_SHELL_LIBPATH = LD_LIBRARY_PATH ;
 }
 PYTHON_SHELL_LIBPATH ?= $(gSHELL_LIBPATH) ;

Thanks,
-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to