diff --git a/projects/libevent/build b/projects/libevent/build
index 1d620d9fd9436a84213eb1f347ddf0285b0adf3f..fe15e8e5e093d0b673e1967d9c85bf4b4a91753e 100644
--- a/projects/libevent/build
+++ b/projects/libevent/build
@@ -11,7 +11,7 @@ cd /var/tmp/build/[% project %]-[% c('version') %]
   export MACOSX_DEPLOYMENT_TARGET=[% c("var/macosx_deployment_target") %]
 [% END -%]
 ./autogen.sh
-./configure --disable-static [% c("var/configure_opt") %] --prefix=$distdir
+./configure --disable-static [% c("var/configure_opt") %] --disable-libevent-regress --disable-samples --prefix=$distdir
 [% IF c("var/osx") -%]
   export LD_PRELOAD=[% c("var/faketime_path") %]
   export FAKETIME="[% USE date; GET date.format(c('timestamp'), format = '%Y-%m-%d %H:%M:%S') %]"