Skip to content

Commit

Permalink
dev-util/android-tools: fix 9.9.0_p3 CC bug 674162
Browse files Browse the repository at this point in the history
Reported-by: Toralf Förster <[email protected]>
Closes: https://bugs.gentoo.org/674162
Package-Manager: Portage-2.3.53, Repoman-2.3.12
Signed-off-by: Zac Medico <[email protected]>
  • Loading branch information
zmedico committed Dec 31, 2018
1 parent 5e208d2 commit e0d7fc6
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions dev-util/android-tools/android-tools-9.0.0_p3.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,16 @@ src_prepare() {
cd "${S}" || die
default

sed -E \
-e "s|^(CC =).*|\\1 $(tc-getCC)|g" \
-e "s|^(CXX =).*|\\1 $(tc-getCXX)|g" \
-e "s|^(CFLAGS =).*|\\1 ${CFLAGS}|g" \
-e "s|^(CPPFLAGS =).*|\\1 ${CPPFLAGS}|g" \
-e "s|^(CXXFLAGS =).*|\\1 ${CXXFLAGS}|g" \
-e "s|^(LDFLAGS =).*|\\1 ${LDFLAGS}|g" \
-e "s|^(PKGVER =).*|\\1 ${MY_PV}|g" \
-i build.ninja || die

# The pregenerated ninja file expects the build/ dir.
BUILD_DIR="${CMAKE_USE_DIR}/build"
cmake-utils_src_prepare
Expand All @@ -104,16 +114,6 @@ src_configure() {
append-lfs-flags

cmake-utils_src_configure

sed -i \
-e "s:@CC@:$(tc-getCC):g" \
-e "s:@CXX@:$(tc-getCXX):g" \
-e "s:@CFLAGS@:${CFLAGS}:g" \
-e "s:@CPPFLAGS@:${CPPFLAGS}:g" \
-e "s:@CXXFLAGS@:${CXXFLAGS}:g" \
-e "s:@LDFLAGS@:${LDFLAGS}:g" \
-e "s:@PV@:${PV}:g" \
build.ninja || die
}

src_compile() {
Expand Down

0 comments on commit e0d7fc6

Please sign in to comment.