mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-08 06:32:59 -04:00
app-misc/bfetch: fix CFLAGS, LDFLAGS, and pre-stripping
Signed-off-by: Theron York <theron.york@cloudnuke.org>
This commit is contained in:
@@ -16,6 +16,16 @@ LICENSE="AGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
sed -i \
|
||||
-e 's|$(CC) $(AGGRESSIVE_FLAGS) -o $(TARGET) $(SOURCE)|$(CC) $(CFLAGS) $(LDFLAGS) -o $(TARGET) $(SOURCE)|' \
|
||||
Makefile || die "Failed to fix compile line"
|
||||
|
||||
# Remove any forced '-s' or strip command entirely, just in case.
|
||||
sed -i 's/-s //g; s/\bstrip\b/true/g' Makefile || die "Failed to remove stripping"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
|
||||
}
|
||||
|
||||
@@ -12,10 +12,18 @@ EGIT_REPO_URI="https://github.com/Mjoyufull/bfetch.git"
|
||||
LICENSE="AGPL-3"
|
||||
SLOT="0"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
sed -i \
|
||||
-e 's|$(CC) $(AGGRESSIVE_FLAGS) -o $(TARGET) $(SOURCE)|$(CC) $(CFLAGS) $(LDFLAGS) -o $(TARGET) $(SOURCE)|' \
|
||||
Makefile || die "Failed to fix compile line"
|
||||
|
||||
sed -i 's/-s //g; s/\bstrip\b/true/g' Makefile || die "Failed to remove stripping"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake CC="$(tc-getCC)" \
|
||||
CFLAGS="${CFLAGS}" \
|
||||
LDFLAGS="${LDFLAGS}"
|
||||
emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
||||
Reference in New Issue
Block a user