From 6aaedb813fa11ba0679c3051bc2eb28646b9506c Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Sat, 30 Aug 2025 16:53:58 -0700 Subject: Update to SDL3 --- src/contrib/SDL-3.2.20/build-scripts/strip_fPIC.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 src/contrib/SDL-3.2.20/build-scripts/strip_fPIC.sh (limited to 'src/contrib/SDL-3.2.20/build-scripts/strip_fPIC.sh') 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 @@ +#!/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="" +while [ $# -gt 0 ]; do + case "$1" in + -?PIC) + # Ignore -fPIC and -DPIC options + ;; + -fno-common) + # Ignore -fPIC and -DPIC options + ;; + *) + command="$command $1" + ;; + esac + shift +done +echo $command +exec $command -- cgit v1.2.3