[Openais] [PATCH] openais/trunk: fix build

Fabio M. Di Nitto fabbione at fabbione.net
Tue Aug 5 02:53:37 PDT 2008


Hi Steven,

SaAMF is not ported to corosync yet, disable the install target to avoid 
dangling symlinks.

Fix libSaEvt.so.2.0.0 build target to add -o $@ otherwise the resulting 
binary is called a.out.. and try to link against that ;)))

Please apply

Fabio

--
I'm going to make him an offer he can't refuse.
-------------- next part --------------
Index: openais/lib/Makefile
===================================================================
--- openais/lib/Makefile	(revision 1621)
+++ openais/lib/Makefile	(working copy)
@@ -70,19 +70,19 @@
 else
 
 libSaClm.so.2.0.0: util.o clm.o
-	$(CC) -shared -Wl,-soname,libclm.so.2,-version-script=libSaClm.versions util.o clm.o -o $@
+	$(CC) $(LDFLAGS) -shared -Wl,-soname,libclm.so.2,-version-script=libSaClm.versions util.o clm.o -o $@
 
 libSaCkpt.so.2.0.0: util.o ckpt.o
 	$(CC) $(LDFLAGS) -shared -Wl,-soname,libSaCkpt.so.2,-version-script=libSaCkpt.versions util.o ckpt.o -o $@
 
 libSaEvt.so.2.0.0: util.o evt.o
-	$(CC) $(LDFLAGS) -shared -Wl,-soname,libSaEvt.so.2,-version-script=libSaEvt.versions util.o evt.o
+	$(CC) $(LDFLAGS) -shared -Wl,-soname,libSaEvt.so.2,-version-script=libSaEvt.versions util.o evt.o -o $@
 
 libSaMsg.so.2.0.0: util.o msg.o
-	$(CC) -shared -Wl,-soname,libmsg.so.2,-version-script=libSaMsg.versions util.o msg.o -o $@
+	$(CC) $(LDFLAGS) -shared -Wl,-soname,libmsg.so.2,-version-script=libSaMsg.versions util.o msg.o -o $@
 
 libSaLck.so.2.0.0: util.o lck.o
-	$(CC) -shared -Wl,-soname,libSaLck.so.2,-version-script=libSaLck.versions util.o lck.o -o $@
+	$(CC) $(LDFLAGS) -shared -Wl,-soname,libSaLck.so.2,-version-script=libSaLck.versions util.o lck.o -o $@
 
 endif
 
Index: openais/Makefile
===================================================================
--- openais/Makefile	(revision 1621)
+++ openais/Makefile	(working copy)
@@ -118,7 +118,8 @@
 	(cd $(builddir)test; echo ==== `pwd` ===; $(call sub_make,test,clean));
 	rm -rf $(builddir)doc/api
 
-AIS_LIBS	= SaAmf SaClm SaCkpt SaEvt SaLck SaMsg
+# AIS_LIBS	= SaAmf SaClm SaCkpt SaEvt SaLck SaMsg
+AIS_LIBS	= SaClm SaCkpt SaEvt SaLck SaMsg
 
 AIS_HEADERS	= saAis.h saAmf.h saClm.h saCkpt.h saEvt.h saEvt.h saLck.h \
 		  saMsg.h


More information about the Openais mailing list