Building gnuradio using meta-sdr gives missing pthread lib functions

After some inspections I have found that lpthread is not defined when linking. Adding that to some link.txt files after inspecting errors, gnuradio builds successfully.

It would be nice to find a fix that pthread would be defined automatically when linking.

Edit:

Adding LDFLAGS += " -lpthread" to gnuradio recipe fixes problem.

But finding the root cause would be nice.