build-scripts/strip_fPIC.sh
branchSDL-1.2
changeset 4297 27fe0dd48269
parent 1889 5225a9cc25a2
equal deleted inserted replaced
4296:f9fb7284991d 4297:27fe0dd48269
     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 [ $# -gt 0 ]; do
     6 while [ $# -gt 0 ]; do
     7     case "$1" in
     7     case "$1" in
     8         -?PIC)
     8         -fPIC)
     9             # Ignore -fPIC and -DPIC options
     9             # Ignore -fPIC option
    10             ;;
    10             ;;
    11         -fno-common)
    11         -fno-common)
    12             # Ignore -fPIC and -DPIC options
    12             # Ignore -fPIC and -DPIC options
    13             ;;
    13             ;;
    14         *)
    14         *)