Skip to content

Latest commit

 

History

History
executable file
·
18 lines (18 loc) · 373 Bytes

strip_fPIC.sh

File metadata and controls

executable file
·
18 lines (18 loc) · 373 Bytes
 
Apr 26, 2001
Apr 26, 2001
1
2
3
4
5
#!/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=""
Apr 26, 2001
Apr 26, 2001
6
while [ $# -gt 0 ]; do
May 10, 2001
May 10, 2001
7
8
9
10
11
case "$1" in
-?PIC)
# Ignore -fPIC and -DPIC options
;;
*)
Apr 26, 2001
Apr 26, 2001
12
command="$command $1"
May 10, 2001
May 10, 2001
13
14
;;
esac
Apr 26, 2001
Apr 26, 2001
15
16
17
18
shift
done
echo $command
exec $command