From 4b6a27fdf9df85363b46ad09d273e369bd6e18c1 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Thu, 27 Dec 2007 16:52:35 +0000 Subject: Don't allow RPATH of . to escape to a tarball. --- Makefile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 6e5a0310..9824f40f 100644 --- a/Makefile +++ b/Makefile @@ -27,6 +27,8 @@ dist: (cd /tmp/$(PKG); git clean; $(MAKE) clean) rm -rf /tmp/$(PKG)/*.bz2 /tmp/$(PKG)/.git /tmp/$(PKG)/test rm -rf /tmp/$(PKG)/.gitignore /tmp/$(PKG)/src/.gitignore + sed -i.bak -e '/LDFLAGS += -Wl,-rpath ./ s/^/#/' /tmp/$(PKG)/src/Makefile + rm -f /tmp/$(PKG)/src/Makefile.bak tar cvjpf $(PKG).tar.bz2 -C /tmp $(PKG) rm -rf /tmp/$(PKG) ls -l $(PKG).tar.bz2 -- cgit v1.2.3