]> git.proxmox.com Git - mirror_corosync.git/commitdiff
Calculate the default path based on the project value of PREFIX
authorSteven Dake <sdake@redhat.com>
Sun, 9 Sep 2007 07:00:53 +0000 (07:00 +0000)
committerSteven Dake <sdake@redhat.com>
Sun, 9 Sep 2007 07:00:53 +0000 (07:00 +0000)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1444 fd59a12c-fef9-0310-b244-a6a79926bd2f

lcr/Makefile
lcr/lcr_ifact.c

index fc728789d7e2587ae88f7ef547bf67330b16456d..41127ee814dd8ef6076d62e8f3cb573fccd1ee1a 100755 (executable)
@@ -26,7 +26,7 @@
 #
 include ../Makefile.inc
 
-override CFLAGS += -I../include
+override CFLAGS += -I../include -DPREFIX='"$(PREFIX)"'
 override LDFLAGS += -L./ ${DYFLAGS}
 
 ifeq (${OPENAIS_COMPAT}, LINUX) 
index 269766859627e4d7bc12aad2cf71dbc6bf2bb6b8..f235a88b152942420a4492b1aed28711d3a45747 100644 (file)
@@ -178,7 +178,8 @@ static void defaults_path_build (void)
                path_list[0] = strdup (cwd);
                path_list_entries++;
        }
-       path_list[path_list_entries++] = "/usr/libexec/lcrso";
+       
+       path_list[path_list_entries++] = PREFIX"/libexec/lcrso";
 }
 
 static void ld_library_path_build (void)