Changeset 27284


Ignore:
Timestamp:
05/01/13 19:14:36 (8 years ago)
Author:
ak19
Message:

Putting back the previously-commented lines that resort to using clang for CC. Now this is only done if clang exists on the darwin. It looks like clang as CC is needed for OS versions lion and mountain lion (10.7 and 10.8), which come with clang.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs2-extensions/imagemagick/trunk/src/packages/CASCADE-MAKE/IMAGEMAGICK.sh

    r27196 r27284  
    1616export LD_LIBRARY_PATH="$GEXTIMAGEMAGICK_INSTALLED/lib"
    1717
    18 #if [ "x$GSDLOS" = "xdarwin" ] ; then
    19 #  CROSSCONFIGURE_VARS="CC=clang"
    20 #fi
     18# If on darwin, check if clang exists. If so, use that as CC, in place of gcc
     19# use command -v instead of which to check if a program exists.
     20# http://stackoverflow.com/questions/592620/check-if-a-program-exists-from-a-bash-script
     21if [ "x$GSDLOS" = "xdarwin" ] ; then
     22    if command -v clang > /dev/null 2>&1; then
     23    echo "Found clang compiler. Switching CC toclang"
     24    CROSSCONFIGURE_VARS="CC=clang"
     25    fi
     26fi
    2127
    2228opt_run_untar $force_untar $auto_untar $package $version
Note: See TracChangeset for help on using the changeset viewer.