strip_fPIC.sh
changeset 1 cf2af46e9e2a
parent 0 74212992fb08
child 22 48c34d68918e
equal deleted inserted replaced
0:74212992fb08 1:cf2af46e9e2a
     1 #!/bin/sh
     1 #!/bin/sh
     2 #
     2 #
     3 # libtool assumes that the compiler can handle the -fPIC flag
     3 # libtool assumes that the compiler can handle the -fPIC flag
     4 # This isn't always true (for example, nasm can't handle it)
     4 # This isn't always true (for example, nasm can't handle it)
     5 command=""
     5 command=""
     6 while [ $1 ]; do
     6 while [ $# -gt 0 ]; do
     7     if [ "$1" != "-fPIC" ]; then
     7     if [ "$1" != "-fPIC" ]; then
     8         if [ "$1" != "-DPIC" ]; then
     8         if [ "$1" != "-DPIC" ]; then
     9             command="$command $1"
     9             command="$command $1"
    10         fi
    10         fi
    11     fi
    11     fi