pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/56163: Solaris 10 support for GNU ld, missing library path



The following reply was made to PR pkg/56163; it has been noted by GNATS.

From: =?utf-8?q?Claes_N=C3=A4st=C3=A9n?= <pekdon%gmail.com@localhost>
To: gnats-bugs <gnats-bugs%netbsd.org@localhost>
Cc: 
Subject: Re: pkg/56163: Solaris 10 support for GNU ld, missing library path
Date: Wed, 12 May 2021 18:25:23 +0200

 Excerpts from Jonathan Perkin's message of 2021-05-12 13:55:01 +0000:
 > The following reply was made to PR pkg/56163; it has been noted by GNATS.
 > 
 > From: Jonathan Perkin <jperkin%joyent.com@localhost>
 > To: gnats-bugs%netbsd.org@localhost
 > Cc: pkg-manager%netbsd.org@localhost, gnats-admin%netbsd.org@localhost, pkgsrc-bugs%netbsd.org@localhost
 > Subject: Re: pkg/56163: Solaris 10 support for GNU ld, missing library path
 > Date: Wed, 12 May 2021 14:53:57 +0100
 > 
 >  * On 2021-05-12 at 14:32 BST, pekdon%gmail.com@localhost wrote:
 >  
 >  >+# Solaris x86_64 libaries are located under /lib/64 and /usr/lib/64 and
 >  >+# must be available for 64bit applications to link
 >  >+.if ${OPSYS} == "SunOS"
 >  >+.if exists(/usr/lib/64)
 >  >+LIB_PATH:=             /usr/lib/64:${LIB_PATH}
 >  >+.endif
 >  >+.if exists(/lib/64)
 >  >+LIB_PATH:=             /lib/64:${LIB_PATH}
 >  >+.endif
 >  >+.endif
 >  >+
 >  
 >  I'm pretty sure we can just use COMPILER_LIB_DIRS for this as intended, 
 >  rather than duplicating all the logic for each platform, i.e.:
 >  
 >     --- a/devel/binutils/Makefile
 >     +++ b/devel/binutils/Makefile
 >     @@ -25,9 +25 @@ GNU_CONFIGURE_STRICT=   no
 >     -# Standard lib dirs on RHEL are named *lib64
 >     -LIB_PATH=              /lib:/usr/lib
 >     -.if exists(/usr/lib64)
 >     -LIB_PATH:=             /usr/lib64:${LIB_PATH}
 >     -.endif
 >     -.if exists(/lib64)
 >     -LIB_PATH:=             /lib64:${LIB_PATH}
 >     -.endif
 >     -CONFIGURE_ARGS+=       --with-lib-path=${LIB_PATH}
 >     +CONFIGURE_ARGS+=       --with-lib-path=${COMPILER_LIB_DIRS:S/ /:/Wg}
 >  
 >  Untested though, as I never use gld on SunOS.
 >  
 
 Tried it out and seems to be working fine on my Ultra 40 running
 Solaris 10. (and, gld is used as the equivalent patch of what OS-1551
 fixed is not on my system)
 
 /Claes
 


Home | Main Index | Thread Index | Old Index