Skip to contentSkip to conversation

cluster/cman/cman_tool Makefile join.c

Cluster-devel [email protected] 1 participant 1 message Jul 3, 2006

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Changes by: pcaulfield at sourceware.org 2006-07-03 07:58:39

Modified files:
cman/cman_tool : Makefile join.c

Log message:
Run aisexec from SBINDIR

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/cman_tool/Makefile.diff?cvsroot=cluster&r1=1.14&r2=1.15
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/cman_tool/join.c.diff?cvsroot=cluster&r1=1.45&r2=1.46

cman/cman_tool/Makefile +2 -2
@@ -18,7 +18,7 @@
 CFLAGS+= -g -I${ccsincdir} -I${incdir} -I${top_srcdir}/config \
 	-DCMAN_RELEASE_NAME=\"${RELEASE}\" -I../lib
 
-CFLAGS+=-DDEBUG
+CFLAGS+=-DDEBUG -fstack-protector -Wp,-D_FORTIFY_SOURCE=2
 
 TARGET=cman_tool
 
@@ -34,7 +34,7 @@
 	$(CC) $(CFLAGS) -c -o $@ $<
 
 join.o: join.c cman_tool.h
-	$(CC) $(CFLAGS) -c -o $@ $< -DLIBEXECDIR=\"${libexecdir}/cman\"
+	$(CC) $(CFLAGS) -c -o $@ $< -DSBINDIR=\"${sbindir}/cman\"
 
 install: cman_tool
 	install -d ${sbindir}
cman/cman_tool/join.c +2 -2
@@ -128,9 +128,9 @@
 
 	case 0: // child
 		be_daemon(!comline->verbose);
-		chdir(LIBEXECDIR);
+		chdir(SBINDIR);
 		execve("./aisexec", argv, envp);
-		die("execve of " LIBEXECDIR "/aisexec failed: %s", strerror(errno));
+		die("execve of " SBINDIR "/aisexec failed: %s", strerror(errno));
 		break;
 
 	default: //parent