Etymology
Today it means: A short spar, at the bows of a ship, that serves as a flagpole to fly a flag (a jack). Full definition →
From jack + staff.
Etymology from Wiktionary, CC BY-SA 4.0.