Mercurial > hg > xemacs-beta
comparison src/s/freebsd.h @ 163:0132846995bd r20-3b8
Import from CVS: tag r20-3b8
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:43:35 +0200 |
parents | 6b37e6ddd302 |
children | 85ec50267440 |
comparison
equal
deleted
inserted
replaced
162:4de2936b4e77 | 163:0132846995bd |
---|---|
26 /* FreeBSD 2.2 or later */ | 26 /* FreeBSD 2.2 or later */ |
27 #ifndef __FreeBSD_version | 27 #ifndef __FreeBSD_version |
28 #include <osreldate.h> | 28 #include <osreldate.h> |
29 #endif | 29 #endif |
30 #if __FreeBSD_version >= 199701 | 30 #if __FreeBSD_version >= 199701 |
31 #define LIBS_SYSTEM -lutil -lxpg4 | 31 #define LIBS_SYSTEM "-lutil -lxpg4" |
32 #else | 32 #else |
33 #define LIBS_SYSTEM -lutil | 33 #define LIBS_SYSTEM "-lutil" |
34 #endif | 34 #endif |
35 | 35 |
36 #define LIBS_TERMCAP -ltermcap | 36 #define LIBS_TERMCAP "-ltermcap" |
37 #define LIB_GCC -lgcc | 37 #define LIB_GCC "-lgcc" |
38 | 38 |
39 /* freebsd has POSIX-style pgrp behavior. */ | 39 /* freebsd has POSIX-style pgrp behavior. */ |
40 #define GETPGRP_NO_ARG | 40 #define GETPGRP_NO_ARG |
41 | 41 |
42 #ifndef NO_SHARED_LIBS | 42 #ifndef NO_SHARED_LIBS |
43 #define LD_SWITCH_SYSTEM -dc -dp -e start | 43 #define LD_SWITCH_SYSTEM "-dc -dp -e start" |
44 #define HAVE_TEXT_START /* No need to define `start_of_text'. */ | 44 #define HAVE_TEXT_START /* No need to define `start_of_text'. */ |
45 #define START_FILES pre-crt0.o /usr/lib/crt0.o | 45 #define START_FILES "pre-crt0.o /usr/lib/crt0.o" |
46 #define UNEXEC unexfreebsd.o | 46 #define UNEXEC "unexfreebsd.o" |
47 #define RUN_TIME_REMAP | 47 #define RUN_TIME_REMAP |
48 | 48 |
49 #ifndef N_TRELOFF | 49 #ifndef N_TRELOFF |
50 #define N_PAGSIZ(x) __LDPGSZ | 50 #define N_PAGSIZ(x) __LDPGSZ |
51 #define N_BSSADDR(x) (N_ALIGN(x, N_DATADDR(x)+x.a_data)) | 51 #define N_BSSADDR(x) (N_ALIGN(x, N_DATADDR(x)+x.a_data)) |
52 #define N_TRELOFF(x) N_RELOFF(x) | 52 #define N_TRELOFF(x) N_RELOFF(x) |
53 #endif | 53 #endif |
54 #else /* NO_SHARED_LIBS */ | 54 #else /* NO_SHARED_LIBS */ |
55 #ifdef __FreeBSD__ /* shared libs are available, but the user prefers | 55 #ifdef __FreeBSD__ /* shared libs are available, but the user prefers |
56 not to use them. */ | 56 not to use them. */ |
57 #define LD_SWITCH_SYSTEM -Bstatic | 57 #define LD_SWITCH_SYSTEM "-Bstatic" |
58 #define A_TEXT_OFFSET(x) (sizeof (struct exec)) | 58 #define A_TEXT_OFFSET(x) (sizeof (struct exec)) |
59 #define A_TEXT_SEEK(hdr) (N_TXTOFF(hdr) + A_TEXT_OFFSET(hdr)) | 59 #define A_TEXT_SEEK(hdr) (N_TXTOFF(hdr) + A_TEXT_OFFSET(hdr)) |
60 #endif /* __FreeBSD__ */ | 60 #endif /* __FreeBSD__ */ |
61 #endif /* NO_SHARED_LIBS */ | 61 #endif /* NO_SHARED_LIBS */ |
62 | 62 |