Subject: pkg/34767: scmgit: added -rpath link option
To: None <,,>
From: Anthony Mallet <>
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

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


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.




--- 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
 ifeq ($(uname_S),Darwin)