From f1223b4eec9bc25265a4f50c423c60462681ead8 Mon Sep 17 00:00:00 2001 From: Christoph Egger Date: Thu, 6 Jan 2011 17:26:26 +0000 Subject: 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 Signed-off-by: Ian Jackson --- config/NetBSD.mk | 2 ++ config/StdGNU.mk | 2 ++ config/SunOS.mk | 2 ++ 3 files changed, 6 insertions(+) (limited to 'config') diff --git a/config/NetBSD.mk b/config/NetBSD.mk index 6245259761..7aed0e7440 100644 --- a/config/NetBSD.mk +++ b/config/NetBSD.mk @@ -7,6 +7,8 @@ LIBLEAFDIR_x86_64 = lib LIBEXEC = $(PREFIX)/libexec PRIVATE_BINDIR = $(BINDIR) +DLOPEN_LIBS = + ifeq ($(PREFIX),/usr) XEN_LOCK_DIR = /var/lib else diff --git a/config/StdGNU.mk b/config/StdGNU.mk index 0b1e0382d6..f27bdc59f5 100644 --- a/config/StdGNU.mk +++ b/config/StdGNU.mk @@ -60,6 +60,8 @@ SOCKET_LIBS = CURSES_LIBS = -lncurses PTHREAD_LIBS = -lpthread UTIL_LIBS = -lutil +DLOPEN_LIBS = -ldl + SONAME_LDFLAG = -soname SHLIB_LDFLAGS = -shared diff --git a/config/SunOS.mk b/config/SunOS.mk index 80a392bcae..6fa0e817dd 100644 --- a/config/SunOS.mk +++ b/config/SunOS.mk @@ -50,6 +50,8 @@ SOCKET_LIBS = -lsocket CURSES_LIBS = -lcurses PTHREAD_LIBS = -lpthread UTIL_LIBS = +DLOPEN_LIBS = -ldl + SONAME_LDFLAG = -h SHLIB_LDFLAGS = -R $(SunOS_LIBDIR) -shared -- cgit v1.2.3