Working on with libjpeg I found that FreeBSD port does not provide any usage of --enable-maxmem configure option. The proposed patch solves this issue. Fix: Apply this patch to port Makefile: cd /usr/ports/graphics/jpeg patch < /path/to/this/file Then use "make J_MAXMEM=nn" to limit memory usage to nn MBytes. How-To-Repeat: Try to make libjpeg from ports with maxmem limit. You won't be able to do this without digging into Makefile.
State Changed From-To: open->closed committed, thanks