diff --git a/build/unix/compiledata.sh b/build/unix/compiledata.sh
index 5cc4e9f1ea1217b023c28c8e42419b7838fc66ae..b20c2440e4ed3a9c8e150b0b478518314c54c329 100755
--- a/build/unix/compiledata.sh
+++ b/build/unix/compiledata.sh
@@ -41,7 +41,7 @@ if [ "$LIBDIR" = "$ROOTSYS/lib" ]; then
    LIBDIR=\$ROOTSYS/lib
 fi
 
-if [ "$ARCH" = "macosx" ]; then
+if [ "$ARCH" = "macosx" ] || [ "$ARCH" = "macosxxlc" ]; then
    macosx_minor=`sw_vers | sed -n 's/ProductVersion://p' | cut -d . -f 2`
    SOEXT="so"
    if [ $macosx_minor -ge 3 ]; then