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: 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.
--
Jonathan Perkin - Joyent, Inc. - www.joyent.com
Home |
Main Index |
Thread Index |
Old Index