[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Building Emacs on MSYS2 (was: Build failure for Emacs master)

From: Angelo Graziosi
Subject: Building Emacs on MSYS2 (was: Build failure for Emacs master)
Date: Thu, 14 Apr 2016 21:56:11 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2

Ciao Óscar,

Óscar Fuentes wrote:
AFAIK Angelo and others that build Emacs on MSYS2 are not using
the PKGBUILD, but following the recipe on the Emacs' docs (possibly with
their own personal modifications.)

really, I DO build Emacs on MSYS2 with that _PKGBUILD_ [*]. It is on GNU/Linux and on OSX which I use some other recipe (my build scripts..)

Regarding the image.c.diff and lread.c.diff patches...

If I remember correctly, when the mingw*imagemagick port is installed, 'configure' tries to "build" using the imagemagick support and the build fails if those patches are not applied.. Maybe the patches fix the build with imagemagick support. But is it a real support or only a workaround so that the build is completed, apparently adding the support for imagemagick?

I have this doubt..


[*] Oops.. with my modification:

$ cat mingw-w64-emacs-git/PKGBUILD

##  MAKE_OPT='-j3' MINGW_INSTALLS=mingw64 makepkg-mingw -sLf

: ${MAKE_OPT=}


prepare() {
  cd "${_realname}"
  patch --binary --forward -p0 < "${srcdir}/image.c.diff"
  patch --binary --forward -p0 < "${srcdir}/lread.c.diff"
  ./autogen.sh all

build() {
[[ -d "${srcdir}/build-${MINGW_CHOST}" ]] && rm -rf "${srcdir}/build-${MINGW_CHOST}"
  mkdir -p "${srcdir}/build-${MINGW_CHOST}"
  cd "build-${MINGW_CHOST}"

  local with_wide_int='no'

  if test "${CARCH}" == 'x86_64'; then

  CPPFLAGS="-DNDEBUG -isystem ${MINGW_PREFIX}/include"
  CFLAGS="-pipe -O3 -fomit-frame-pointer -funroll-loops"
  LDFLAGS="-s -Wl,-s"
  "${srcdir}/${_realname}/configure" \
    --prefix="${MINGW_PREFIX}" \
    --build="${MINGW_CHOST}" \
    --enable-gcc-warnings=no \
    --with-wide-int="${with_wide_int}" \
    --with-sound="yes" \
    --with-file-notification="yes" \
    --without-gpm \
    --without-gconf \
    --without-gsettings \

  echo "Using MAKE_OPT = ${MAKE_OPT}"

  make ${MAKE_OPT}


reply via email to

[Prev in Thread] Current Thread [Next in Thread]