]> git.eshelyaron.com Git - emacs.git/commitdiff
No longer add debug symbols to release build
authorPhillip Lord <phillip.lord@russet.org.uk>
Thu, 25 Apr 2019 14:26:26 +0000 (15:26 +0100)
committerPhillip Lord <phillip.lord@russet.org.uk>
Wed, 5 Jun 2019 21:15:21 +0000 (22:15 +0100)
* admin/nt/dist-build/build-zips.sh: Remove -g3 from release build and
  install with install-strip

admin/nt/dist-build/build-zips.sh

index 4404c779629a9ddf0d63d6b78a2f8644d55c9c77..cff6fdec3e03ae98fbdd1da9f92986bfd74d405e 100755 (executable)
@@ -58,10 +58,10 @@ function build_zip {
             --without-dbus \
             --host=$HOST --without-compress-install \
             $CACHE \
-            CFLAGS="-O2 -static -g3"
+            CFLAGS="$CFLAGS"
     fi
 
-    make -j 2 install \
+    make -j 4 $INSTALL_TARGET \
          prefix=$HOME/emacs-build/install/emacs-$VERSION/$ARCH
     cd $HOME/emacs-build/install/emacs-$VERSION/$ARCH
     cp $HOME/emacs-build/deps/libXpm/$ARCH/libXpm-noX4.dll bin
@@ -107,6 +107,8 @@ BUILD_32=1
 BUILD_64=1
 GIT_UP=0
 CONFIG=1
+CFLAGS="-O2 -static"
+INSTALL_TARGET="install-strip"
 
 while getopts "36gb:hnsiV:" opt; do
   case $opt in
@@ -141,6 +143,8 @@ while getopts "36gb:hnsiV:" opt; do
         ;;
     s)
         SNAPSHOT="-snapshot"
+        CFLAGS="-O2 -static -g3"
+        INSTALL_TARGET="install"
         ;;
     h)
         echo "build-zips.sh"
@@ -200,6 +204,8 @@ else
     OF_VERSION="$VERSION-`date +%Y-%m-%d`"
     ## Use snapshot dependencies
     SNAPSHOT=1
+    CFLAGS="-O2 -static -g3"
+    INSTALL_TARGET="install"
 fi
 
 if (($GIT_UP))