summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOndřej Surý <ondrej@sury.org>2011-02-18 11:22:29 +0100
committerOndřej Surý <ondrej@sury.org>2011-02-18 11:33:25 +0100
commit86b89c887566fdf6c87bd6c377786d345fbfd039 (patch)
treedfebb63f0d60cfe7f3be232be754c352d580ce91
parent7cd5d8d8a63d347ae28668d4a45497def6ba037b (diff)
downloadgolang-86b89c887566fdf6c87bd6c377786d345fbfd039.tar.gz
Remove RPATH/RUNPATH from go binaries
-rw-r--r--debian/control2
-rwxr-xr-xdebian/rules2
2 files changed, 3 insertions, 1 deletions
diff --git a/debian/control b/debian/control
index f6255bc9f..6d0ad1008 100644
--- a/debian/control
+++ b/debian/control
@@ -4,7 +4,7 @@ Priority: optional
Maintainer: Ondřej Surý <ondrej@debian.org>
Vcs-Browser: https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi?p=pkg-google/golang.git
Vcs-Git: git://scm.alioth.debian.org/git/pkg-google/golang.git
-Build-Depends: debhelper (>= 7.4.10), bison, ed, mawk | awk, perl
+Build-Depends: debhelper (>= 7.4.10), bison, ed, mawk | awk, perl, chrpath
Standards-Version: 3.9.1
Homepage: http://golang.org/
diff --git a/debian/rules b/debian/rules
index 6f49cec3b..6d5e7a5f6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -49,6 +49,8 @@ override_dh_auto_install:
rm -rf $(DESTDIR)/usr/lib/golang/lib/codereview
for cmd in a c g l; do ln -s $(GOPREFIX)$$cmd $(DESTDIR)$(bindir)/golang-$$cmd; done
for cmd in nm cov prof; do ln -s 6$$cmd $(DESTDIR)$(bindir)/golang-$$cmd; done
+ # remove RUNPATH from go binaries
+ for cmd in goyacc ebnflint godoc govet gofmt goinstall cgo; do chrpath -d $(DESTDIR)$(bindir)/$$cmd; done
override_dh_install:
dh_install --fail-missing