On Tue, Mar 24, 2009 at 8:51 PM, Alan Coopersmith
<[email protected]> wrote:
> Move flags for linking standard C/C++ libraries from configure.ac to mklib
> Use -norunpath flag when linking with Sun C++ compiler
> Convert mklib -exports list into a linker mapfile
> Set FINAL_LIBS correctly when -noprefix is used
>
> Signed-off-by: Alan Coopersmith <[email protected]>
> ---
> bin/mklib | 28 +++++++++++++++++++++++++++-
> configure.ac | 35 ++++++++++++-----------------------
> 2 files changed, 39 insertions(+), 24 deletions(-)
>
> diff --git a/bin/mklib b/bin/mklib
> index d7b740f..a3e826a 100755
> --- a/bin/mklib
> +++ b/bin/mklib
> @@ -394,6 +394,30 @@ case $ARCH in
> fi
> fi
>
> + # If using Sun C++ compiler, need to tell it not to add runpaths
> + # that are specific to the build machine
> + if [ ${LINK} = "CC" ] ; then
> + OPTS="${OPTS} -norunpath"
> + fi
It doesn't really apply to me, but I wouldn't want my runpath settings
to be silently ignored if I was building mesa on solaris. You could
always add them to LDFLAGS for your nevada builds. That should be
respected throughout the build. Not a big deal, though.
> + # Solaris linker requires explicitly listing the Standard C & C++
> + # libraries in the link path when building shared objects
> + if [ ${LINK} = "CC" ] ; then
> + DEPS="${DEPS} -lCrun"
> + fi
> + DEPS="${DEPS} -lc"
I like this a lot better than doing it in configure.ac. Thanks.
The rest looks fine to me.
--
Dan
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev