emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master abba535: Don't link with -ljpeg on MS-Windows, to a


From: Eli Zaretskii
Subject: [Emacs-diffs] master abba535: Don't link with -ljpeg on MS-Windows, to avoid dependency on DLL
Date: Thu, 16 Apr 2015 16:03:49 +0000

branch: master
commit abba535271c3bd617d198c237a6fbb7d8dbb8cf7
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    Don't link with -ljpeg on MS-Windows, to avoid dependency on DLL
    
    * configure.ac (LIBJPEG): Leave it empty for MinGW.
---
 configure.ac |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 39f3f9f..4cb3c35 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3186,7 +3186,6 @@ fi
 AC_SUBST(LIBXPM)
 
 ### Use -ljpeg if available, unless `--with-jpeg=no'.
-### mingw32 doesn't use -ljpeg, since it loads the library dynamically.
 HAVE_JPEG=no
 LIBJPEG=
 if test "${with_jpeg}" != "no"; then
@@ -3222,7 +3221,11 @@ if test "${with_jpeg}" != "no"; then
     HAVE_JPEG=yes
     AC_DEFINE([HAVE_JPEG], 1,
       [Define to 1 if you have the jpeg library (typically -ljpeg).])
-    test "$emacs_cv_jpeglib" != yes && LIBJPEG=$emacs_cv_jpeglib
+    ### mingw32 doesn't use -ljpeg, since it loads the library
+    ### dynamically when needed, and doesn't want a run-time
+    ### dependency on the jpeglib DLL.
+    test "$emacs_cv_jpeglib" != yes && test "${opsys}" != "mingw32" \
+    && LIBJPEG=$emacs_cv_jpeglib
   fi
 fi
 AC_SUBST(LIBJPEG)



reply via email to

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