mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-23 16:49:10 -07:00
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:
@@ -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 \
|
||||
|
||||
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user