Calling make twice might be the most reliable among quick solutions. I can only think of
echo "
install-openlibm: $(build_prefix)/manifest/openlibm
patchelf --clear-execstack /home/tamas/src/julia-git/usr/bin/../lib/libopenlibm.so
" >> deps/openlibm.mk
but that’s pretty ugly.