(bootstrap-prepare): Also chmod cal-loaddefs.el.
[emacs.git] / src / s / openbsd.h
blob3b996de70593d6b1b31d3c95024a6696975d542c
1 /* s/ file for openbsd systems. */
3 /* Mostly the same as NetBSD. */
4 #include "netbsd.h"
6 /* This very-badly named symbol is conditionally defined in netbsd.h.
7 Better would be either to not need it in the first place, or to choose
8 a more descriptive name. */
9 #ifndef LD_SWITCH_SYSTEM_tmp
10 #define LD_SWITCH_SYSTEM_tmp /* empty */
11 #endif
13 /* David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
14 is necessary. Otherwise Emacs dumps core when run -nw. */
15 #undef LIBS_TERMCAP
17 #define TERMINFO
18 #define LIBS_TERMCAP -lncurses
20 #undef LD_SWITCH_SYSTEM_TEMACS
21 #undef LD_SWITCH_SYSTEM
22 #ifdef __ELF__
24 /* Han Boetes <han@mijncomputer.nl> says this
25 is necessary, otherwise Emacs dumps core on elf systems. */
26 #define LD_SWITCH_SYSTEM LD_SWITCH_SYSTEM_tmp -Z
28 /* The version of gcc on OpenBSD doesn't search /usr/local/lib by
29 default. */
30 #define LD_SWITCH_X_DEFAULT -L/usr/local/lib
32 #else
34 #define LD_SWITCH_SYSTEM LD_SWITCH_SYSTEM_tmp
35 #define LD_SWITCH_X_DEFAULT -L/usr/local/lib
37 #endif
39 /* arch-tag: 7e3f65ca-3f48-4237-933f-2b208b21e8e2
40 (do not change this comment) */