summaryrefslogtreecommitdiff
path: root/src/contrib/SDL-3.2.20/build-scripts/strip_fPIC.sh
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2025-08-30 16:53:58 -0700
committer3gg <3gg@shellblade.net>2025-08-30 16:53:58 -0700
commit6aaedb813fa11ba0679c3051bc2eb28646b9506c (patch)
tree34acbfc9840e02cb4753e6306ea7ce978bf8b58e /src/contrib/SDL-3.2.20/build-scripts/strip_fPIC.sh
parent8f228ade99dd3d4c8da9b78ade1815c9adf85c8f (diff)
Update to SDL3
Diffstat (limited to 'src/contrib/SDL-3.2.20/build-scripts/strip_fPIC.sh')
-rwxr-xr-xsrc/contrib/SDL-3.2.20/build-scripts/strip_fPIC.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/contrib/SDL-3.2.20/build-scripts/strip_fPIC.sh b/src/contrib/SDL-3.2.20/build-scripts/strip_fPIC.sh
new file mode 100755
index 0000000..8719b89
--- /dev/null
+++ b/src/contrib/SDL-3.2.20/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)
5command=""
6while [ $# -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
19done
20echo $command
21exec $command