From b50aed45b7be31741cb56467594499df9007ec6d Mon Sep 17 00:00:00 2001 From: Todd Persen Date: Fri, 25 Oct 2013 13:35:02 -0400 Subject: [PATCH] check the binary on linux only --- build.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/build.sh b/build.sh index a64ec143c2..ff563f2ffc 100755 --- a/build.sh +++ b/build.sh @@ -88,7 +88,9 @@ for i in $packages; do done # make sure that the server doesn't use a new version of glibc -if readelf -a ./server | grep GLIBC_2.14 >/dev/null 2>&1; then - echo "./server has some references to GLIBC_2.14. Aborting." - exit 1 +if [ $on_linux == yes ]; then + if readelf -a ./server | grep GLIBC_2.14 >/dev/null 2>&1; then + echo "./server has some references to GLIBC_2.14. Aborting." + exit 1 + fi fi