Commits

Ryan Schmidt authored 3d24dc439fd
libsockets: fix failure in create-dylib.sh when CC has a space (e.g. when ccache is used)

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@77377 d073be05-634f-4543-b044-5fe20cf6d1d6
No tags

devel/libsockets/files/create-dylib.sh

Modified
31 31 if [ $# -ne 3 ]; then
32 32 echo "Usage: $0 lib.a version libdir"
33 33 exit 1
34 34 fi
35 35
36 36 tmpdir="create-dylib.${$}"
37 37
38 38 liba=${1}
39 39 version=${2}
40 40 libdir=${3}
41 -if [ -z ${CC} ]; then
41 +if [ -z "${CC}" ]; then
42 42 CC=gcc
43 43 fi
44 44 if [ -z ${AR} ]; then
45 45 AR=ar
46 46 fi
47 47
48 48 lib=$(echo $liba | sed 's|^.*/||g' | sed 's|\.a$||g')
49 49
50 50 if ! mkdir ${tmpdir}; then
51 51 echo "Error creating tmpdir"

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut