comparison src/Makefile.in.in @ 2502:261c5cd19207

[xemacs-hg @ 2005-01-26 03:40:10 by ben] Puh-raise the lawd! insert-data-in-exec.c: Need to open everything as binary. Makefile.in.in: Don't compile executable as Windows (-mwindows) under Cygwin. Semi-recent changes to Cygwin's executable-startup handling make it impossible to access the TTY this way. Don't use special linker file under Cygwin (cygwin.sc) except when non-PDUMP (even in this case it is highly questionable); you get errors like 1 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening input console handle after exec, errno 13, Win32 error 5 5820 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening output console handle after exec, errno 13, Win32 error 5
author ben
date Wed, 26 Jan 2005 03:40:15 +0000
parents 97dd9f867cef
children 0b4097b3552f
comparison
equal deleted inserted replaced
2501:b02114faf3c2 2502:261c5cd19207
375 ## -Demacs is needed to make some files produce the correct version 375 ## -Demacs is needed to make some files produce the correct version
376 ## for use in Emacs. 376 ## for use in Emacs.
377 377
378 cppflags = $(CPPFLAGS) -Demacs -I. $(c_switch_all) 378 cppflags = $(CPPFLAGS) -Demacs -I. $(c_switch_all)
379 cflags = $(CFLAGS) $(cppflags) 379 cflags = $(CFLAGS) $(cppflags)
380 #if defined (WIN32_NATIVE) || defined (CYGWIN) 380 #if defined (WIN32_NATIVE)
381 ldflags = $(LDFLAGS) -mwindows -e _mainCRTStartup $(ld_switch_all) $(ld_dynamic_link_flags) 381 ldflags = $(LDFLAGS) -mwindows -e _mainCRTStartup $(ld_switch_all) $(ld_dynamic_link_flags)
382 # if defined (CYGWIN) 382 #else
383 ldflags = $(LDFLAGS) $(ld_switch_all) $(ld_dynamic_link_flags)
384 #endif
385
386 #if defined (CYGWIN) && !defined (PDUMP)
383 ldflags += -Wl,--script=s/cygwin.sc 387 ldflags += -Wl,--script=s/cygwin.sc
384 # endif
385 #else
386 ldflags = $(LDFLAGS) $(ld_switch_all) $(ld_dynamic_link_flags)
387 #endif 388 #endif
388 389
389 #ifdef SOLARIS2 390 #ifdef SOLARIS2
390 %.o : %.c 391 %.o : %.c
391 #else 392 #else