aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/patch-specs.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/patch-specs.sh')
-rwxr-xr-xscripts/patch-specs.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/patch-specs.sh b/scripts/patch-specs.sh
index 3307b6b090..2262e218fe 100755
--- a/scripts/patch-specs.sh
+++ b/scripts/patch-specs.sh
@@ -35,7 +35,7 @@ patch_specs() {
echo -n "Patching specs ... "
STAGING_DIR="$DIR" "$CPP" -dumpspecs | awk '
mode ~ "link" {
- sub("%{L.}", "%{L*} -L %:getenv(STAGING_DIR /usr/lib) -rpath-link %:getenv(STAGING_DIR /usr/lib)")
+ sub(/(%@?\{L.\})/, "& -L %:getenv(STAGING_DIR /usr/lib) -rpath-link %:getenv(STAGING_DIR /usr/lib)")
}
mode ~ "cpp" {
$0 = $0 " -idirafter %:getenv(STAGING_DIR /usr/include)"