Baby Crying before pooping

My baby is 1month. The past week or so he has been crying nonstop seems like. I am breastfeeding. He gets enough but it seems as though he has trouble with pooping. He poops fine. Its the normal yellowish color with the little grains but its like when he goes its so forceful. Seems as though he is hurting up until the point where he finally gets it out.. is there anything I can do to help him. It really breaks my heart when he cries like this like he is in pain or something...