File: strip_fPIC.sh

package info (click to toggle)
pcsxr 1.9.94-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 10,572 kB
  • sloc: ansic: 117,276; objc: 8,159; cpp: 1,140; makefile: 315; asm: 145; pascal: 30; sh: 20
file content (15 lines) | stat: -rw-r--r-- 328 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/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 [ $1 ]; do
    if [ "$1" != "-fPIC" ]; then
        if [ "$1" != "-DPIC" ]; then
            command="$command $1"
        fi
    fi
    shift
done
echo $command
exec $command