commit:     165a96a564bc5f7cee0719084da76359ce66cc90
Author:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
AuthorDate: Thu Jun  4 07:00:58 2020 +0000
Commit:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Thu Jun  4 07:01:01 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=165a96a5

dev-lang/micropython: honor CFLAGS and LDFLAGS.

Closes: https://bugs.gentoo.org/726902
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>

 dev-lang/micropython/micropython-1.11.ebuild | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/dev-lang/micropython/micropython-1.11.ebuild 
b/dev-lang/micropython/micropython-1.11.ebuild
index a7361e69166..e0c69a12c7a 100644
--- a/dev-lang/micropython/micropython-1.11.ebuild
+++ b/dev-lang/micropython/micropython-1.11.ebuild
@@ -31,18 +31,18 @@ src_compile() {
                -e 's#\/usr\/local#\/usr#g;' \
                Makefile || die
 
-       emake CC="$(tc-getCC)" axtls
-       emake CC="$(tc-getCC)"
+       emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" axtls
+       emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
 }
 
 src_test() {
        cd ports/unix || die
-       emake CC="$(tc-getCC)" test
+       emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" test
 }
 
 src_install() {
        pushd ports/unix > /dev/null || die
-       emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" DESTDIR="${D}" install
+       emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" 
DESTDIR="${D}" install
        popd > /dev/null || die
 
        # remove .git files

Reply via email to