Skip to content
This repository has been archived by the owner on Sep 29, 2022. It is now read-only.

Commit

Permalink
Add some checks about cairo/pango
Browse files Browse the repository at this point in the history
  • Loading branch information
mingwandroid committed Oct 16, 2017
1 parent 69c9dd2 commit 89e315f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions r-base/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ Linux() {
--with-recommended-packages=no \
LIBnn=lib

if cat src/include/config.h | grep "undef HAVE_PANGOCAIRO"; then
echo "Did not find pangocairo, refusing to continue"
cat config.log | grep pango
exit 1
fi

make -j${CPU_COUNT}
# echo "Running make check-all, this will take some time ..."
# make check-all -j1 V=1 > $(uname)-make-check.log 2>&1 || make check-all -j1 V=1 > $(uname)-make-check.2.log 2>&1
Expand Down Expand Up @@ -362,3 +368,10 @@ case `uname` in
Mingw_w64_makefiles
;;
esac

cairo_so=$(find ${PREFIX} -name "cairo.so")
if ldd ${cairo_so} || grep /usr/lib64/libpng; then
echo "Broken, ${cairo_so} links to system libpng (and probably pango and pangocairo)"
exit 1
fi

0 comments on commit 89e315f

Please sign in to comment.