ref
flag + pole
flagpole (n.)
also flag-pole, 1782, from flag (n.1) + pole (n.1). Flagpole-sitting as a craze is attested from 1927.