Browse Source

Disable optimization in development PKGBUILD.

Saves a lot of compilation time (5:50 before, 3:40 now).
pull/278/head
Vladimír Vondruš 13 years ago
parent
commit
600a03b0e6
  1. 4
      PKGBUILD

4
PKGBUILD

@ -15,6 +15,10 @@ build() {
mkdir -p "$startdir/build"
cd "$startdir/build/"
# Disable optimization (saves A LOT of compilation time)
newcxxflags=$(echo $CXXFLAGS | sed s/-O.//g | sed s/-D_FORTIFY_SOURCE=.//g)
export CXXFLAGS="$newcxxflags"
if [ "$CXX" = clang++ ] ; then
newcxxflags=$(echo $CXXFLAGS | sed s/--param=ssp-buffer-size=4//g)
export CXXFLAGS="$newcxxflags"

Loading…
Cancel
Save