Skip to content

Latest commit

 

History

History
executable file
·
15 lines (15 loc) · 334 Bytes

strip_fPIC.sh

File metadata and controls

executable file
·
15 lines (15 loc) · 334 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
Apr 26, 2001
Apr 26, 2001
7
8
9
10
11
12
13
14
15
if [ "$1" != "-fPIC" ]; then
if [ "$1" != "-DPIC" ]; then
command="$command $1"
fi
fi
shift
done
echo $command
exec $command