diff --git a/src/core/eztrace.c.in b/src/core/eztrace.c.in
index 01c7a5c..b298964 100644
--- a/src/core/eztrace.c.in
+++ b/src/core/eztrace.c.in
@@ -227,7 +227,7 @@ int main(int argc, char **argv) {
     fprintf(stderr, "Eztrace test Mode\n");
     files = alloc_and_copy("@abs_top_builddir@/src/core/.libs/libeztrace-autostart@DYNLIB_EXT@");
   }else{
-    files = alloc_and_copy("@prefix@/lib/libeztrace-autostart@DYNLIB_EXT@");
+    files = alloc_and_copy("@libdir@/libeztrace-autostart@DYNLIB_EXT@");
   }
   if(pptrace_add_preload(bin, files)){
     fprintf(stderr, "Unable to add %s to @LD_PRELOAD_NAME@\n", files);
