execstack links libelf.so.1 and is built against it. Signed-off-by: Zakk <zakk@gentoozh.org>
35 lines
676 B
Bash
35 lines
676 B
Bash
# Copyright 2022 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit autotools
|
|
|
|
DESCRIPTION="set the executable stack flag of ELF binaries and libraries"
|
|
HOMEPAGE="https://people.redhat.com/jakub/prelink/"
|
|
SRC_URI="https://people.redhat.com/jakub/prelink/prelink-20130503.tar.bz2"
|
|
S="${WORKDIR}"/prelink
|
|
|
|
LICENSE="GPL-2+ LGPL-2+"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
|
|
DEPEND="virtual/libelf:="
|
|
RDEPEND="${DEPEND}"
|
|
|
|
src_prepare() {
|
|
default
|
|
# fix libelf detection
|
|
sed -i 's/#include <string.h>/&\n#include <unistd.h>/' m4/libelf.m4 || die
|
|
eautoreconf
|
|
}
|
|
|
|
src_compile() {
|
|
cd src
|
|
emake execstack
|
|
}
|
|
|
|
src_install() {
|
|
dobin src/execstack
|
|
}
|