diff options
| author | 3gg <3gg@shellblade.net> | 2025-12-27 12:03:39 -0800 |
|---|---|---|
| committer | 3gg <3gg@shellblade.net> | 2025-12-27 12:03:39 -0800 |
| commit | 5a079a2d114f96d4847d1ee305d5b7c16eeec50e (patch) | |
| tree | 8926ab44f168acf787d8e19608857b3af0f82758 /contrib/SDL-3.2.8/build-scripts/strip_fPIC.sh | |
Initial commit
Diffstat (limited to 'contrib/SDL-3.2.8/build-scripts/strip_fPIC.sh')
| -rwxr-xr-x | contrib/SDL-3.2.8/build-scripts/strip_fPIC.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/contrib/SDL-3.2.8/build-scripts/strip_fPIC.sh b/contrib/SDL-3.2.8/build-scripts/strip_fPIC.sh new file mode 100755 index 0000000..8719b89 --- /dev/null +++ b/contrib/SDL-3.2.8/build-scripts/strip_fPIC.sh | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | # | ||
| 3 | # libtool assumes that the compiler can handle the -fPIC flag | ||
| 4 | # This isn't always true (for example, nasm can't handle it) | ||
| 5 | command="" | ||
| 6 | while [ $# -gt 0 ]; do | ||
| 7 | case "$1" in | ||
| 8 | -?PIC) | ||
| 9 | # Ignore -fPIC and -DPIC options | ||
| 10 | ;; | ||
| 11 | -fno-common) | ||
| 12 | # Ignore -fPIC and -DPIC options | ||
| 13 | ;; | ||
| 14 | *) | ||
| 15 | command="$command $1" | ||
| 16 | ;; | ||
| 17 | esac | ||
| 18 | shift | ||
| 19 | done | ||
| 20 | echo $command | ||
| 21 | exec $command | ||
