I'm not sure of your exact application but in retro flash situations (window & door heads, etc.) I normally cut a shallow, upward angled kerf into the wood, tuck the flashing into it & seal with caulk.