The film was called "Wild Rovers" (1971), starring William Holden, Ryan O'Neal, and Karl Malden.
IMDb lists only 2 songs for that film:
BALLAD OF THE WILD ROVERS
Words and music by Jerry Goldsmith
Sung by William Holden
WILD ROVER
Words by Ernie Sheldon, music by Jerry Goldsmith
Sung by Sheb Wooley