summarylogtreecommitdiffstats
path: root/02.lto.patch
diff options
context:
space:
mode:
authorQue Quotion2018-08-30 10:42:56 +0900
committerQue Quotion2018-08-30 10:49:02 +0900
commit00b4663035f5a907c5170253ce762f6df4ee7975 (patch)
tree39dc35e8b4b179f79a45c8a871ececa20a9154a5 /02.lto.patch
parent32fa78c289e0c3f0ae564a73f2045de2dadb4ae5 (diff)
downloadaur-00b4663035f5a907c5170253ce762f6df4ee7975.tar.gz
Migrate makepkg-optimize2 into makepkg-optimize; this is the best way to deal with my out-of-date troll and pacman-build_env-ext
Diffstat (limited to '02.lto.patch')
-rw-r--r--02.lto.patch20
1 files changed, 0 insertions, 20 deletions
diff --git a/02.lto.patch b/02.lto.patch
deleted file mode 100644
index 056cad498c1..00000000000
--- a/02.lto.patch
+++ /dev/null
@@ -1,20 +0,0 @@
---- makepkg-optimize
-+++ makepkg-optimize
-@@ -866,6 +866,17 @@ run_build() {
- export DISTCC_HOSTS
- fi
-
-+ # Use lto if it is requested (check buildenv and PKGBUILD opts)
-+ if check_buildoption "lto" "y" && [[ -f "$(gcc -print-search-dirs | grep install | awk '{print $2 "liblto_plugin.so"}')" ]]; then
-+ CFLAGS+=" -flto=$(getconf _NPROCESSORS_ONLN)"
-+ CXXFLAGS+=" -flto=$(getconf _NPROCESSORS_ONLN)"
-+ LDFLAGS+=" -fuse-linker-plugin"
-+ LTOPLUGIN="$(gcc -print-search-dirs | grep install | awk '{print $2 "liblto_plugin.so"}')"
-+ ARFLAGS+=" --plugin $LTOPLUGIN"
-+ RANLIBFLAGS+=" --plugin $LTOPLUGIN"
-+ NMFLAGS+=" --plugin $LTOPLUGIN"
-+ fi
-+
- run_function_safe "build"
- }
-