Edit

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

Branch :

  • Show log

    Commit

  • Author : Ryan C. Gordon
    Date : 2015-04-20 12:22:44
    Hash : b72938c8
    Message : Windows: Always set the system timer resolution to 1ms by default. An existing hint lets apps that don't need the timer resolution changed avoid this, to save battery, etc, but this fixes several problems in timing, audio callbacks not firing fast enough, etc. Fixes Bugzilla #2944.

  • 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