summarylogtreecommitdiffstats
path: root/03.pgo.patch
diff options
context:
space:
mode:
authorQue Quotion2016-03-21 05:42:08 +0900
committerQue Quotion2016-03-21 05:42:08 +0900
commit3d4ec70ef50c43ac845db51471b191bd3b158b2a (patch)
tree3d7c79225b0af3c7da25803c1eb276e477e6bad0 /03.pgo.patch
parent951a83282873377c78279c9e9f31efa0671e0df9 (diff)
downloadaur-3d4ec70ef50c43ac845db51471b191bd3b158b2a.tar.gz
Some minor fixes. Most packages have no complains, but a few insist
the compiler cannot create executables. I think it is innapropriate whitespace or other disruption getting into a variable.
Diffstat (limited to '03.pgo.patch')
-rw-r--r--03.pgo.patch10
1 files changed, 5 insertions, 5 deletions
diff --git a/03.pgo.patch b/03.pgo.patch
index da815084676d..13543d0829b3 100644
--- a/03.pgo.patch
+++ b/03.pgo.patch
@@ -8,13 +8,13 @@
+ if check_buildoption "pgo" "y"; then
+ if [ ! -d "$PROFDEST/$pkgbase.gen" ]; then
+ mkdir "$PROFDEST/$pkgbase.gen"
-+ CFLAGS+=" -fprofile-generate -fprofile-dir=$PROFDEST/$pkgbase.gen"
-+ CXXFLAGS+=" -fprofile-generate -fprofile-dir=$PROFDEST/$pkgbase.gen"
-+ LDFLAGS+=" -Wl,-lgcov"
++ CFLAGS+="-fprofile-generate -fprofile-dir=$PROFDEST/$pkgbase.gen"
++ CXXFLAGS+="-fprofile-generate -fprofile-dir=$PROFDEST/$pkgbase.gen"
++ LDFLAGS+="-lgcov"
+ else
+ [[ ! -d "$PROFDEST/$pkgbase.used" ]] && mv "$PROFDEST/$pkgbase.gen" "$PROFDEST/$pkgbase.used"
-+ CFLAGS+=" -fprofile-correction -fprofile-use -fprofile-dir=$PROFDEST/$pkgbase.used"
-+ CXXFLAGS+=" -fprofile-correction -fprofile-use -fprofile-dir=$PROFDEST/$pkgbase.used"
++ CFLAGS+="-fprofile-correction -fprofile-use -fprofile-dir=$PROFDEST/$pkgbase.used"
++ CXXFLAGS+="-fprofile-correction -fprofile-use -fprofile-dir=$PROFDEST/$pkgbase.used"
+ fi
+ fi
+