We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a56c45 commit 03d5720Copy full SHA for 03d5720
build/musl-pie-linker.sh
@@ -1,5 +1,13 @@
1
-#!/bin/sh
+#!/bin/bash
2
# Linker wrapper for musl builds that need dynamic GTK.
3
# Replaces -static-pie with -pie to allow dynamic library loading
4
# while keeping musl libc statically linked.
5
-exec cc $(echo "$@" | sed 's/-static-pie/-pie/g')
+args=()
6
+for arg in "$@"; do
7
+ if [ "$arg" = "-static-pie" ]; then
8
+ args+=("-pie")
9
+ else
10
+ args+=("$arg")
11
+ fi
12
+done
13
+exec cc "${args[@]}"
0 commit comments