Edit

kc3-lang/SDL/build-scripts/strip_fPIC.sh

Branch :

  • Show log

    Commit

  • Author : David Ludwig
    Date : 2014-04-09 21:29:19
    Hash : 3dcb451f
    Message : Added a README file regarding WinRT support To note, this file is currently formatted with CRLF line endings, rather than LF, to allow the file to be viewed with Notepad.

  • build-scripts/strip_fPIC.sh
  • #!/bin/sh
    #
    # libtool assumes that the compiler can handle the -fPIC flag
    # This isn't always true (for example, nasm can't handle it)
    command=""
    while [ $# -gt 0 ]; do
        case "$1" in
            -?PIC)
                # Ignore -fPIC and -DPIC options
                ;;
            -fno-common)
                # Ignore -fPIC and -DPIC options
                ;;
            *)
                command="$command $1"
                ;;
        esac
        shift
    done
    echo $command
    exec $command