sci-visualization/gnuplot: fix cross-compile builds

The upstream build tries to set up CC_FOR_BUILD for building helper tools,
but still mixes target compiler flags in which easily leads to failure.
This commit is contained in:
Mike Frysinger
2016-01-29 17:50:47 -05:00
parent 3bae81c5a0
commit cae0c8e14f
2 changed files with 19 additions and 0 deletions

View File

@@ -104,6 +104,13 @@ src_prepare() {
distributed separately; the gnuplot ebuild no longer installs it.
Emerge app-emacs/gnuplot-mode for Emacs support.'
has_version "${CATEGORY}/${PN}[emacs(-)]" && FORCE_PRINT_ELOG=1
# Make sure we don't mix build & host flags.
sed -i \
-e 's:@CPPFLAGS@:$(BUILD_CPPFLAGS):' \
-e 's:@CFLAGS@:$(BUILD_CFLAGS):' \
-e 's:@LDFLAGS@:$(BUILD_LDFLAGS):' \
docs/Makefile.in || die
}
src_configure() {
@@ -117,6 +124,8 @@ src_configure() {
fi
tc-export CC CXX #453174
tc-export_build_env BUILD_CC
export CC_FOR_BUILD=${BUILD_CC}
econf \
--without-pdf \

View File

@@ -104,6 +104,14 @@ src_prepare() {
mv configure.in configure.ac || die
eautoreconf
# Make sure we don't mix build & host flags.
sed -i \
-e 's:@CPPFLAGS@:$(BUILD_CPPFLAGS):' \
-e 's:@CFLAGS@:$(BUILD_CFLAGS):' \
-e 's:@LDFLAGS@:$(BUILD_LDFLAGS):' \
-e 's:@CC@:$(CC_FOR_BUILD):' \
docs/Makefile.in || die
}
src_configure() {
@@ -117,6 +125,8 @@ src_configure() {
fi
tc-export CC CXX #453174
tc-export_build_env BUILD_CC
export CC_FOR_BUILD=${BUILD_CC}
econf \
--without-pdf \