Every partition-wall shall either be bonded or anchored to cross-walls at both ends as required by section 8 or 19, or shall be so fixed at one end only and at the other be fixed to a framework which, in the opinion of the local authority, provided an adequate lateral support.