8 CMK_LD_SHARED
='-shared'
12 if [ "$CMK_MACOSX" ]; then
13 # find real gcc (not Apple's clang) in $PATH on darwin, works with homebrew/macports
14 candidates
=$
(which gcc gcc-
{4.
.19} gcc-mp-
{4.
.19} 2>/dev
/null
)
15 for cand
in $candidates; do
16 $cand -v 2>&1 |
grep -q clang
18 cppcand
=$
(echo $cand |
sed s
,cc
,++,)
22 CMK_CXX
="$cppcand -fPIC -Wno-deprecated "
28 if [ -z "$found" ]; then
29 echo "No suitable non-clang gcc found, exiting"