diff --git a/colord.spec b/colord.spec index 89c2078..b509f99 100644 --- a/colord.spec +++ b/colord.spec @@ -93,6 +93,11 @@ This may be useful for CMYK soft-proofing or for extra device support. # https://bugzilla.redhat.com/show_bug.cgi?id=892837 export CFLAGS='-fPIC %optflags' export LDFLAGS='-pie -Wl,-z,now -Wl,-z,relro' + +# Set ~2 GiB limit so that colprof is forced to work in chunks when +# generating the print profile rather than trying to allocate a 3.1 GiB +# chunk of RAM to put the entire B-to-A tables in. +ulimit -Sv 2000000 %configure \ --with-daemon-user=colord \ --enable-gtk-doc \