Subject: pkg/34767: scmgit: added -rpath link option
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Anthony Mallet <anthony.mallet@laas.fr>
List: pkgsrc-bugs
Date: 10/09/2006 11:25:00
>Number:         34767
>Category:       pkg
>Synopsis:       scmgit: added -rpath link option
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 09 11:25:00 +0000 2006
>Originator:     Anthony Mallet
>Release:        Linux 2.6.17-1.2187_FC5 i686
>Organization:
>Environment:


System: Linux jiminy 2.6.17-1.2187_FC5 #1 Mon Sep 11 01:15:40 EDT 2006 i686


>Description:


Under linux, git is linked against -lcrypto from pkgsrc without -rpath option.
Following global pkgsrc strategy I think this is useful. Maybe this should be generalized to other platforms as well.
I attach a sample patch-ab file that solves the problem for me.



>How-To-Repeat:





>Fix:


$NetBSD$

--- Makefile~	2006-10-09 10:44:36.000000000 +0200
+++ Makefile	2006-10-09 12:04:52.000000000 +0200
@@ -244,6 +244,7 @@
 
 ifeq ($(uname_S),Linux)
 	NO_STRLCPY = YesPlease
+	ALL_LDFLAGS+= -Wl,-rpath $(LOCALBASE)/lib
 endif
 ifeq ($(uname_S),Darwin)
 	NEEDS_SSL_WITH_CRYPTO = YesPlease