The wall was supporting the entire weight of the roof.
Literal
Wall [subject-が] roof entire's weight [object-を] supporting was.
支える means 'to support/hold up.' 屋根全体の重さ is 'the weight of the entire roof.' The ~ていた marks the ongoing past state — the wall was continuously bearing the load. A descriptive sentence about structural engineering.