diff options
| author | Chong Yidong | 2009-12-09 01:06:32 +0000 |
|---|---|---|
| committer | Chong Yidong | 2009-12-09 01:06:32 +0000 |
| commit | a4ef73c887614e05e4d0039419da0bcf1a073f00 (patch) | |
| tree | 343cf054d29dd570688a8ba946c5841660a75762 | |
| parent | 0f0ea87e8c03aa623de5632ecacd3621ffe410a5 (diff) | |
| download | emacs-a4ef73c887614e05e4d0039419da0bcf1a073f00.tar.gz emacs-a4ef73c887614e05e4d0039419da0bcf1a073f00.zip | |
* configure.in: Allow compiling Emacs with GTK on Cygwin.
* src/s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
* src/emacs.c (main): Set the G_SLICE environment variable for Cygwin
GTK builds.
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | configure.in | 10 | ||||
| -rw-r--r-- | src/ChangeLog | 7 | ||||
| -rw-r--r-- | src/emacs.c | 5 | ||||
| -rw-r--r-- | src/s/cygwin.h | 6 |
5 files changed, 22 insertions, 10 deletions
| @@ -1,3 +1,7 @@ | |||
| 1 | 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change) | ||
| 2 | |||
| 3 | * configure.in: Allow compiling Emacs with GTK on Cygwin. | ||
| 4 | |||
| 1 | 2009-12-01 Glenn Morris <rgm@gnu.org> | 5 | 2009-12-01 Glenn Morris <rgm@gnu.org> |
| 2 | 6 | ||
| 3 | * make-dist: Add etc/images/mpc directory. | 7 | * make-dist: Add etc/images/mpc directory. |
diff --git a/configure.in b/configure.in index 98e39cc007d..34d5fd5ae42 100644 --- a/configure.in +++ b/configure.in | |||
| @@ -3026,16 +3026,6 @@ fi | |||
| 3026 | 3026 | ||
| 3027 | echo | 3027 | echo |
| 3028 | 3028 | ||
| 3029 | if test "$USE_X_TOOLKIT" = GTK; then | ||
| 3030 | case "$canonical" in | ||
| 3031 | *cygwin*) | ||
| 3032 | echo "There are known problems with Emacs and Gtk+ on cygwin, so you | ||
| 3033 | will probably get a crash on startup. If this happens, please use another | ||
| 3034 | toolkit for Emacs. See etc/PROBLEMS for more information." | ||
| 3035 | ;; | ||
| 3036 | esac | ||
| 3037 | fi | ||
| 3038 | |||
| 3039 | if test "$HAVE_NS" = "yes"; then | 3029 | if test "$HAVE_NS" = "yes"; then |
| 3040 | echo | 3030 | echo |
| 3041 | echo "You must run \"make install\" in order to test the built application. | 3031 | echo "You must run \"make install\" in order to test the built application. |
diff --git a/src/ChangeLog b/src/ChangeLog index 11d8127057e..9f666aa649d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change) | ||
| 2 | |||
| 3 | * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable. | ||
| 4 | |||
| 5 | * emacs.c (main): Set the G_SLICE environment variable for Cygwin | ||
| 6 | GTK builds. | ||
| 7 | |||
| 1 | 2009-12-07 Andreas Schwab <schwab@linux-m68k.org> | 8 | 2009-12-07 Andreas Schwab <schwab@linux-m68k.org> |
| 2 | 9 | ||
| 3 | * unexelf.c (unexec): Don't search for .data twice. | 10 | * unexelf.c (unexec): Don't search for .data twice. |
diff --git a/src/emacs.c b/src/emacs.c index d96b3a1daf1..8b88985969b 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -809,6 +809,11 @@ main (int argc, char **argv) | |||
| 809 | stack_base = &dummy; | 809 | stack_base = &dummy; |
| 810 | #endif | 810 | #endif |
| 811 | 811 | ||
| 812 | #if defined (USE_GTK) && defined (G_SLICE_ALWAYS_MALLOC) | ||
| 813 | /* This is used by the Cygwin build. */ | ||
| 814 | setenv ("G_SLICE", "always-malloc", 1); | ||
| 815 | #endif | ||
| 816 | |||
| 812 | if (!initialized) | 817 | if (!initialized) |
| 813 | { | 818 | { |
| 814 | extern char my_endbss[]; | 819 | extern char my_endbss[]; |
diff --git a/src/s/cygwin.h b/src/s/cygwin.h index 69b826ac932..3dd73c0f6e1 100644 --- a/src/s/cygwin.h +++ b/src/s/cygwin.h | |||
| @@ -126,6 +126,12 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 126 | /* Virtual addresses of pure and impure space can vary, as on Windows. */ | 126 | /* Virtual addresses of pure and impure space can vary, as on Windows. */ |
| 127 | #define VIRT_ADDR_VARIES | 127 | #define VIRT_ADDR_VARIES |
| 128 | 128 | ||
| 129 | /* Emacs supplies its own malloc, but glib (part of Gtk+) calls | ||
| 130 | memalign and on Cygwin, that becomes the Cygwin-supplied memalign. | ||
| 131 | As malloc is not the Cygwin malloc, the Cygwin memalign always | ||
| 132 | returns ENOSYS. A workaround is to set G_SLICE=always-malloc. */ | ||
| 133 | #define G_SLICE_ALWAYS_MALLOC | ||
| 134 | |||
| 129 | /* the end */ | 135 | /* the end */ |
| 130 | 136 | ||
| 131 | /* arch-tag: 5ae7ba00-83b0-4ab3-806a-3e845779191b | 137 | /* arch-tag: 5ae7ba00-83b0-4ab3-806a-3e845779191b |