Yet more build fixes
Signed-off-by: Lon Hohberger <lhh@redhat.com>
This commit is contained in:
parent
1ddb9136d9
commit
4960380013
@ -17,15 +17,11 @@ AC_PROG_LN_S
|
||||
AC_PROG_MAKE_SET
|
||||
|
||||
# Checks for libraries.
|
||||
# FIXME: Replace `main' with a function in `-lSaCkpt':
|
||||
AC_CHECK_LIB([SaCkpt], [saCkptCheckpointOpen])
|
||||
# FIXME: Replace `main' with a function in `-lnss3':
|
||||
AC_CHECK_LIB([cpg], [cpg_finalize])
|
||||
AC_CHECK_LIB([nss3], [NSS_NoDB_Init])
|
||||
# FIXME: Replace `main' with a function in `-lpthread':
|
||||
AC_CHECK_LIB([pthread], [pthread_create])
|
||||
# FIXME: Replace `main' with a function in `-lvirt':
|
||||
AC_CHECK_LIB([virt], [virConnectOpen])
|
||||
# FIXME: Replace `main' with a function in `-lxml2':
|
||||
AC_CHECK_LIB([xml2], [main])
|
||||
|
||||
|
||||
|
@ -31,7 +31,8 @@ CFLAGS+=-DFENCE_RELEASE_NAME=\"devel\" -D_MODULE -DSYSCONFDIR=\"@sysconfdir@\"
|
||||
LIBS+=-L../common -lfence_virt -Wl,-wrap,syslog,-wrap,closelog -lpthread
|
||||
|
||||
MAIN_LIBS=-L../config -lsimpleconfig -ldl
|
||||
AIS_LIBS=-L@libdir@/openais -lSaCkpt
|
||||
AIS_LIBS=-L/usr/lib64/openais -lSaCkpt # XXX FIXME
|
||||
COROSYNC_LIBS=-L/usr/lib64/corosync -lcpg
|
||||
VIRT_LIBS=-lvirt
|
||||
NSS_LIBS=-lnss3
|
||||
|
||||
@ -50,7 +51,7 @@ null.so: ${null_so_SOURCES:.c=.o}
|
||||
gcc -o $@ $^ $(LIBS) -shared
|
||||
|
||||
checkpoint.so: ${checkpoint_so_SOURCES:.c=.o}
|
||||
gcc -o $@ $^ $(LIBS) -shared $(AIS_LIBS) $(VIRT_LIBS)
|
||||
gcc -o $@ $^ $(LIBS) -shared $(AIS_LIBS) $(VIRT_LIBS) $(COROSYNC_LIBS)
|
||||
|
||||
%.o: %.c
|
||||
gcc $(CFLAGS) -c -o $@ $^ $(INCLUDES)
|
||||
|
Loading…
Reference in New Issue
Block a user