OpenCV cross-compile issue


I’m successfully cross-compiling from Debian Jessie to the BBB.
Now I’m trying to cross-compile openCV, so I can do some image processing on the BBB.

I’ve followed the cross-compilation instructions from

However, it seems no matter what I do, opencv is always building for x86-64 instead of arm.
Any ideas would be greatly appreciated!