projects
/
openwrt
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mac80211: add new acs_exclude_dfs option
[openwrt/.git]
/
scripts
/
patch-specs.sh
diff --git
a/scripts/patch-specs.sh
b/scripts/patch-specs.sh
index 3307b6b0904501a83a5f8bc8824d91c9304c6fd1..2262e218fe2cb46534aa5bc3c684eb80902aa24d 100755
(executable)
--- 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" {
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)"
}
mode ~ "cpp" {
$0 = $0 " -idirafter %:getenv(STAGING_DIR /usr/include)"