debuggers.hg

annotate config/StdGNU.mk @ 16117:3d13b318349a

xenconsoled: portability fixes:
- Use openpty(), which does the same as the sequence
of open(), grantpt(), unlockpt(), ptsname(), tcgetattr()
simplifies code
- Check return code from tcsetattr()
- sprintf() -> snprintf()
- OpenBSD lacks POSIX grantpt() and unlockpt()
requires use of openpty()
- Solaris lacks POSIX openpty() via feedback from SUN (John Levon)
implement openpty() for Solaris, tested and ok'd by SUN (John
Levon)

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
author Keir Fraser <keir@xensource.com>
date Mon Oct 08 10:55:50 2007 +0100 (2007-10-08)
parents 66e935c09530
children d57a94546911
rev   line source
kfraser@11844 1 AS = $(CROSS_COMPILE)as
kfraser@11844 2 LD = $(CROSS_COMPILE)ld
kfraser@11844 3 CC = $(CROSS_COMPILE)gcc
ewan@14569 4 CPP = $(CC) -E
kfraser@11844 5 AR = $(CROSS_COMPILE)ar
kfraser@11844 6 RANLIB = $(CROSS_COMPILE)ranlib
kfraser@11844 7 NM = $(CROSS_COMPILE)nm
kfraser@11844 8 STRIP = $(CROSS_COMPILE)strip
kfraser@11844 9 OBJCOPY = $(CROSS_COMPILE)objcopy
kfraser@11844 10 OBJDUMP = $(CROSS_COMPILE)objdump
kfraser@11844 11
kaf24@13228 12 MSGFMT = msgfmt
tom@14902 13 MSGMERGE = msgmerge
kaf24@13228 14
kfraser@11844 15 INSTALL = install
kfraser@14314 16 INSTALL_DIR = $(INSTALL) -d -m0755 -p
kfraser@14314 17 INSTALL_DATA = $(INSTALL) -m0644 -p
kfraser@14314 18 INSTALL_PROG = $(INSTALL) -m0755 -p
kfraser@11844 19
kfraser@11844 20 LIB64DIR = lib64
kfraser@11844 21
kfraser@11844 22 SOCKET_LIBS =
kfraser@11844 23 CURSES_LIBS = -lncurses
keir@16117 24 UTIL_LIBS = -lutil
kfraser@11844 25 SONAME_LDFLAG = -soname
kfraser@11844 26 SHLIB_CFLAGS = -shared
kfraser@11844 27
kfraser@11844 28 ifneq ($(debug),y)
kfraser@11844 29 # Optimisation flags are overridable
kfraser@11844 30 CFLAGS ?= -O2 -fomit-frame-pointer
kfraser@11844 31 else
kfraser@11844 32 # Less than -O1 produces bad code and large stack frames
kfraser@11844 33 CFLAGS ?= -O1 -fno-omit-frame-pointer
kfraser@11844 34 endif