Limit the memory allocation to 2GiB when building profiles
This commit is contained in:
parent
752bd31367
commit
407af1af47
@ -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
|
# https://bugzilla.redhat.com/show_bug.cgi?id=892837
|
||||||
export CFLAGS='-fPIC %optflags'
|
export CFLAGS='-fPIC %optflags'
|
||||||
export LDFLAGS='-pie -Wl,-z,now -Wl,-z,relro'
|
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 \
|
%configure \
|
||||||
--with-daemon-user=colord \
|
--with-daemon-user=colord \
|
||||||
--enable-gtk-doc \
|
--enable-gtk-doc \
|
||||||
|
Loading…
Reference in New Issue
Block a user