A simpler solution is to supply the CFLAGS to configure:
./configure --disable-dependency-tracking CFLAGS='-arch x86_64 -arch i386 -arch ppc'
when building libjpeg.
I only recently worked this out, solving the same issue for https://rt.cpan.org/Ticket/Display.html?id=73371