Re: [PATCH] Library path fix

2006-11-29 Thread Martin Sebor
Andrew Black wrote: Greetings all. After checking in this patch, I was performing a test build on AIX 5.2 with GCC, and discovered that the version of ld available with this OS doesn't support the -bsrv4 and -R switches. Attached is a patch that aims to resolve this issue, along with a relat

Re: [PATCH] Library path fix

2006-11-29 Thread Andrew Black
Greetings all. After checking in this patch, I was performing a test build on AIX 5.2 with GCC, and discovered that the version of ld available with this OS doesn't support the -bsrv4 and -R switches. Attached is a patch that aims to resolve this issue, along with a related issue with vacpp o

Re: [PATCH] Library path fix

2006-11-28 Thread Martin Sebor
Andrew Black wrote: Martin Sebor wrote: For gcc you need to guard the changes and enable them only for Linux and Solaris. On other platforms (AIX, HP-UX, IRIX, Tru64) you should use the same flag as for the native compilers. Other than that I think it's good to commit. Btw., it would be nice

Re: [PATCH] Library path fix

2006-11-28 Thread Andrew Black
Martin Sebor wrote: For gcc you need to guard the changes and enable them only for Linux and Solaris. On other platforms (AIX, HP-UX, IRIX, Tru64) you should use the same flag as for the native compilers. Other than that I think it's good to commit. Btw., it would be nice to set up nightly test

Re: [PATCH] Library path fix

2006-11-27 Thread Martin Sebor
Andrew Black wrote: Andrew Black wrote: [...] I've tested on Linux with GCC and ICC using the '-Wl,-R$(LIBDIR)' switch to the compiler, and the desired behavior in the resulting executables is obtained. I'll check the sunpro patch in shortly. I intend to post a follow up patch at some poi

Re: [PATCH] Library path fix

2006-11-17 Thread Andrew Black
Andrew Black wrote: [...] I've tested on Linux with GCC and ICC using the '-Wl,-R$(LIBDIR)' switch to the compiler, and the desired behavior in the resulting executables is obtained. I'll check the sunpro patch in shortly. I intend to post a follow up patch at some point to make this same c

Re: [PATCH] Library path fix

2006-11-14 Thread Andrew Black
Martin Sebor wrote: Andrew Black wrote: [...] The SunPro documentation (on Solaris) states that the option is passed to ld, and both Solaris and Linux use that flag for the same purpose. Do we have SunPro installed on any of our Linux build servers? I am not aware of it being available anywhe

Re: [PATCH] Library path fix

2006-11-13 Thread Martin Sebor
Andrew Black wrote: [...] The SunPro documentation (on Solaris) states that the option is passed to ld, and both Solaris and Linux use that flag for the same purpose. Do we have SunPro installed on any of our Linux build servers? I am not aware of it being available anywhere, but I could be mi

Re: [PATCH] Library path fix

2006-11-13 Thread Andrew Black
Martin Sebor wrote: Andrew Black wrote: Greetings all. According to the thread from the Sun Studio C++ forum, it is recommended that that reliance on the LD_LIBRARY_PATH variables be avoided. Rather, it is recommended that such references be added to executables using the RPATH setting.

Re: [PATCH] Library path fix

2006-11-13 Thread Martin Sebor
Andrew Black wrote: Greetings all. According to the thread from the Sun Studio C++ forum, it is recommended that that reliance on the LD_LIBRARY_PATH variables be avoided. Rather, it is recommended that such references be added to executables using the RPATH setting. To this end, a revise

Re: [PATCH] Library path fix

2006-11-13 Thread Andrew Black
Greetings all. According to the thread from the Sun Studio C++ forum, it is recommended that that reliance on the LD_LIBRARY_PATH variables be avoided. Rather, it is recommended that such references be added to executables using the RPATH setting. To this end, a revised patch and ChangeLog

Re: [PATCH] Library path fix

2006-11-06 Thread Martin Sebor
Since the Sun C++ user manual doesn't explain which variable is set in a typical installation of the compiler I posted the question below to the Sun Studio C++ forum to help us decide how to proceed: http://forum.sun.com/jive/thread.jspa?threadID=111021 Martin Martin Sebor wrote: Andrew Black w

Re: [PATCH] Library path fix

2006-11-03 Thread Martin Sebor
Andrew Black wrote: Greetings all. Attached is a patch that aims to fix a bug that manifests itself when running 64-bit builds on SPARC Solaris. The issue that arises is that dynamic builds of this type use the LD_LIBRARY_PATH_64 variable to determine where to locate shared libraries, rather

[PATCH] Library path fix

2006-11-03 Thread Andrew Black
Greetings all. Attached is a patch that aims to fix a bug that manifests itself when running 64-bit builds on SPARC Solaris. The issue that arises is that dynamic builds of this type use the LD_LIBRARY_PATH_64 variable to determine where to locate shared libraries, rather than the LD_LIBRARY