Don't allow RPATH of . to escape to a tarball.
This commit is contained in:
parent
3f079ce495
commit
4b6a27fdf9
2
Makefile
2
Makefile
@ -27,6 +27,8 @@ dist:
|
|||||||
(cd /tmp/$(PKG); git clean; $(MAKE) clean)
|
(cd /tmp/$(PKG); git clean; $(MAKE) clean)
|
||||||
rm -rf /tmp/$(PKG)/*.bz2 /tmp/$(PKG)/.git /tmp/$(PKG)/test
|
rm -rf /tmp/$(PKG)/*.bz2 /tmp/$(PKG)/.git /tmp/$(PKG)/test
|
||||||
rm -rf /tmp/$(PKG)/.gitignore /tmp/$(PKG)/src/.gitignore
|
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)
|
tar cvjpf $(PKG).tar.bz2 -C /tmp $(PKG)
|
||||||
rm -rf /tmp/$(PKG)
|
rm -rf /tmp/$(PKG)
|
||||||
ls -l $(PKG).tar.bz2
|
ls -l $(PKG).tar.bz2
|
||||||
|
Loading…
Reference in New Issue
Block a user