X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=scripts%2Fpatch-specs.sh;h=2262e218fe2cb46534aa5bc3c684eb80902aa24d;hb=a5ec41b0e598f73cd1f878a107c480f472dfb15a;hp=3307b6b0904501a83a5f8bc8824d91c9304c6fd1;hpb=1a6ccdc0cf06a3ac2bfac9277e21d890bcca92f8;p=openwrt%2F.git 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)"