Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Latest commit

 

History

History
executable file
·
21 lines (21 loc) · 454 Bytes

strip_fPIC.sh

File metadata and controls

executable file
·
21 lines (21 loc) · 454 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
case "$1" in
-?PIC)
# Ignore -fPIC and -DPIC options
;;
Jun 26, 2006
Jun 26, 2006
11
12
13
-fno-common)
# Ignore -fPIC and -DPIC options
;;
May 10, 2001
May 10, 2001
14
*)
Apr 26, 2001
Apr 26, 2001
15
command="$command $1"
May 10, 2001
May 10, 2001
16
17
;;
esac
Apr 26, 2001
Apr 26, 2001
18
19
20
21
shift
done
echo $command
exec $command