1 |
commit: e5a4e48fe6bb76ef62fae3f22601b801dbe59a06 |
2 |
Author: Andrew Savchenko <bircoph <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jun 2 07:32:10 2016 +0000 |
4 |
Commit: Andrew Savchenko <bircoph <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jun 2 07:33:16 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e5a4e48f |
7 |
|
8 |
app-text/htmldoc: respect system toolchain settings |
9 |
|
10 |
If CC and CXX variables are not exported to configure, it ignores |
11 |
system toolchain setup and forces its own compiler preferences, |
12 |
where clang/clang++ are on the first place if found. This is likely |
13 |
not what users want and causes configure failure if CFLAGS/CXXFLAGS |
14 |
contain flag(s) not supported by clang, but supported by gcc. |
15 |
|
16 |
Package-Manager: portage-2.3.0_rc1 |
17 |
Signed-off-by: Andrew Savchenko <bircoph <AT> gentoo.org> |
18 |
|
19 |
app-text/htmldoc/htmldoc-1.8.29.ebuild | 3 ++- |
20 |
1 file changed, 2 insertions(+), 1 deletion(-) |
21 |
|
22 |
diff --git a/app-text/htmldoc/htmldoc-1.8.29.ebuild b/app-text/htmldoc/htmldoc-1.8.29.ebuild |
23 |
index db8e075..c7cd08a 100644 |
24 |
--- a/app-text/htmldoc/htmldoc-1.8.29.ebuild |
25 |
+++ b/app-text/htmldoc/htmldoc-1.8.29.ebuild |
26 |
@@ -3,7 +3,7 @@ |
27 |
# $Id$ |
28 |
|
29 |
EAPI=6 |
30 |
-inherit eutils |
31 |
+inherit eutils toolchain-funcs |
32 |
|
33 |
DESCRIPTION="Convert HTML pages into a PDF document" |
34 |
SRC_URI="http://www.msweet.org/files/project1/${P}-source.tar.bz2" |
35 |
@@ -36,6 +36,7 @@ src_prepare() { |
36 |
src_configure() { |
37 |
local myconf="$(use_with fltk gui)" |
38 |
|
39 |
+ CC=$(tc-getCC) CXX=$(tc-getCXX) \ |
40 |
econf ${myconf} |
41 |
# Add missing -lfltk_images to LIBS |
42 |
if use fltk; then |