debuggers.hg

view config/StdGNU.mk @ 22703:5d78193d67d1

libxc: portability fixes for NetBSD

Attached patch makes libxc build again on NetBSD after the recent rework.

[ Modified by iwj:

I changed the name of the new make variable from LIBDL to DLOPEN_LIBS.
The latter conforms to the naming scheme for similar variables found
in config/*.mk - PTHREAD_LIBS et al.

Also I moved the setting of the variable to -dl from Linux to StdGNU
(which makes it apply more widely) and also added it to SunOS.mk
(based on pure guesswork). ]

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
author Christoph Egger <Christoph.Egger@amd.com>
date Thu Jan 06 17:26:26 2011 +0000 (2011-01-06)
parents 0afdfb8b460f
children
line source
1 AS = $(CROSS_COMPILE)as
2 LD = $(CROSS_COMPILE)ld
3 CC = $(CROSS_COMPILE)gcc
4 CPP = $(CC) -E
5 AR = $(CROSS_COMPILE)ar
6 RANLIB = $(CROSS_COMPILE)ranlib
7 NM = $(CROSS_COMPILE)nm
8 STRIP = $(CROSS_COMPILE)strip
9 OBJCOPY = $(CROSS_COMPILE)objcopy
10 OBJDUMP = $(CROSS_COMPILE)objdump
11 SIZEUTIL = $(CROSS_COMPILE)size
13 MSGFMT = msgfmt
14 MSGMERGE = msgmerge
16 # Allow git to be wrappered in the environment
17 GIT ?= git
19 WGET ?= wget -c
21 INSTALL = install
22 INSTALL_DIR = $(INSTALL) -d -m0755 -p
23 INSTALL_DATA = $(INSTALL) -m0644 -p
24 INSTALL_PROG = $(INSTALL) -m0755 -p
26 PREFIX ?= /usr
27 BINDIR = $(PREFIX)/bin
28 INCLUDEDIR = $(PREFIX)/include
29 LIBLEAFDIR = lib
30 LIBLEAFDIR_x86_32 = lib
31 LIBLEAFDIR_x86_64 ?= lib64
32 LIBDIR = $(PREFIX)/$(LIBLEAFDIR)
33 LIBDIR_x86_32 = $(PREFIX)/$(LIBLEAFDIR_x86_32)
34 LIBDIR_x86_64 = $(PREFIX)/$(LIBLEAFDIR_x86_64)
35 LIBEXEC = $(LIBDIR_x86_32)/xen/bin
36 SHAREDIR = $(PREFIX)/share
37 MANDIR = $(SHAREDIR)/man
38 MAN1DIR = $(MANDIR)/man1
39 MAN8DIR = $(MANDIR)/man8
40 SBINDIR = $(PREFIX)/sbin
41 XENFIRMWAREDIR = $(LIBDIR_x86_32)/xen/boot
43 PRIVATE_PREFIX = $(LIBDIR)/xen
44 PRIVATE_BINDIR = $(PRIVATE_PREFIX)/bin
46 ifeq ($(PREFIX),/usr)
47 CONFIG_DIR = /etc
48 XEN_LOCK_DIR = /var/lock
49 else
50 CONFIG_DIR = $(PREFIX)/etc
51 XEN_LOCK_DIR = $(PREFIX)/var/lock
52 endif
54 SYSCONFIG_DIR = $(CONFIG_DIR)/$(CONFIG_LEAF_DIR)
56 XEN_CONFIG_DIR = $(CONFIG_DIR)/xen
57 XEN_SCRIPT_DIR = $(XEN_CONFIG_DIR)/scripts
59 SOCKET_LIBS =
60 CURSES_LIBS = -lncurses
61 PTHREAD_LIBS = -lpthread
62 UTIL_LIBS = -lutil
63 DLOPEN_LIBS = -ldl
65 SONAME_LDFLAG = -soname
66 SHLIB_LDFLAGS = -shared
68 ifneq ($(debug),y)
69 CFLAGS += -O2 -fomit-frame-pointer
70 else
71 # Less than -O1 produces bad code and large stack frames
72 CFLAGS += -O1 -fno-omit-frame-pointer -fno-optimize-sibling-calls
73 endif