Cannot link to OpenGL after updating C++ compiler version


/usr/bin/ld: cannot find -lGL
collect2: error: ld returned 1 exit status

I’m getting this error for all builds after changing C++ compiler version.
Any ideas how to fix it?
Today is my first day with Travis, so maybe I’m missing something…

I checked ldconfig, I have one and only one libGL library there, so it can’t be conflict

Update 2:
But I only have, while in working version I have too


Travis YML: