diff options
author | Mike Frysinger <vapier@chromium.org> | 2018-09-17 23:47:29 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2018-09-17 23:48:36 -0400 |
commit | 35e6708437937e606a718be756ba8a7988652323 (patch) | |
tree | c8bee8a5f4d3ad54f830291bcc5c5e2343224028 /sys-devel/bc/files | |
parent | sys-devel/bc: replace ed usage with sed (diff) | |
download | gentoo-35e6708437937e606a718be756ba8a7988652323.tar.gz gentoo-35e6708437937e606a718be756ba8a7988652323.tar.bz2 gentoo-35e6708437937e606a718be756ba8a7988652323.zip |
sys-devel/bc: fix cross-compile builds #627126
Fixes: https://bugs.gentoo.org/627126
Diffstat (limited to 'sys-devel/bc/files')
-rw-r--r-- | sys-devel/bc/files/bc-1.07.1-use-system-bc.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sys-devel/bc/files/bc-1.07.1-use-system-bc.patch b/sys-devel/bc/files/bc-1.07.1-use-system-bc.patch new file mode 100644 index 000000000000..03ccb68c0836 --- /dev/null +++ b/sys-devel/bc/files/bc-1.07.1-use-system-bc.patch @@ -0,0 +1,16 @@ +when cross-compiling, the local fbc binary won't work. use the system +bc instead as the demands of the .b script are simple enough. + +https://bugs.gentoo.org/627126 + +--- a/bc/Makefile.in ++++ b/bc/Makefile.in +@@ -628,7 +628,7 @@ libmath.h: libmath.b $(fbcOBJ) $(LIBBC) + echo '{0}' > libmath.h + $(MAKE) global.o + $(LINK) -o fbc $(fbcOBJ) global.o $(LIBBC) $(LIBL) $(READLINELIB) $(LIBS) +- ./fbc -c $(srcdir)/libmath.b </dev/null >libmath.h ++ bc -c $(srcdir)/libmath.b </dev/null >libmath.h + $(srcdir)/fix-libmath_h + rm -f ./fbc ./global.o + sbc.o: sbc.c |