Skip to content

Commit

Permalink
sys-apps/i2c-tools: respect AR/CFLAGS
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/651528
Package-Manager: Portage-2.3.24, Repoman-2.3.6
  • Loading branch information
Zlogene committed Apr 21, 2018
1 parent d52e319 commit 64095b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sys-apps/i2c-tools/i2c-tools-4.0.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ src_configure() {
}

src_compile() {
emake all-lib CC=$(tc-getCC) # parallel make
emake all-lib AR=$(tc-getAR) CC=$(tc-getCC) # parallel make
emake CC=$(tc-getCC)
emake -C eepromer CC=$(tc-getCC)
emake -C eepromer CC=$(tc-getCC) CFLAGS="${CFLAGS}"
if use python ; then
cd py-smbus || die
append-cppflags -I../include
Expand All @@ -45,7 +45,7 @@ src_compile() {
src_install() {
emake install-lib install libdir="${D}"/usr/$(get_libdir) prefix="${D}"/usr
dosbin eepromer/eeprom{,er}
rm -rf "${D}"/usr/include # part of linux-headers
rm -rf "${D}"/usr/include || die # part of linux-headers
dodoc CHANGES README
local d
for d in eeprom eepromer ; do
Expand Down

0 comments on commit 64095b1

Please sign in to comment.