components/python/greenlet/CC.sh
changeset 1605 7fc7910b6d94
equal deleted inserted replaced
1604:b6e3e1ed52a5 1605:7fc7910b6d94
       
     1 #! /bin/sh
       
     2 
       
     3 # Wrapper script to work-around the fact that for Python 2.6,
       
     4 # /usr/lib/python2.6/config/Makefile always inserts -KPIC when
       
     5 # building shared objects regardless of the compiler version.
       
     6 
       
     7 GCC=/usr/gcc/4.7/bin/gcc
       
     8 
       
     9 newargs=""
       
    10 for arg in $@; do
       
    11 	case ${arg} in
       
    12 	'-KPIC')
       
    13 		continue
       
    14 		;;
       
    15 	*)
       
    16 		newargs="${newargs} ${arg}"
       
    17 		;;
       
    18 	esac
       
    19 done
       
    20 
       
    21 exec ${GCC} ${newargs}