Remove "-lpthread" when building tests on macos. In most cases it seems to be not used.
Remove "-lpthread" when building tests on macos.
In most cases it seems to be not used.

PiperOrigin-RevId: 191407383

hfp/tensorflow-xsmm,dendisuhubdy/tensorflow,davidzchen/tensorflow,hfp/tensorflow-xsmm,xzturn/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,theflofly/tensorflow,xzturn/tensorflow,ppwwyyxx/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,karllessard/tensorflow,asimshankar/tensorflow,manipopopo/tensorflow,brchiu/tensorflow,jalexvig/tensorflow,gunan/tensorflow,freedomtan/tensorflow,paolodedios/tensorflow,renyi533/tensorflow,aam-at/tensorflow,paolodedios/tensorflow,nburn42/tensorflow,nburn42/tensorflow,frreiss/tensorflow-fred,kobejean/tensorflow,adit-chandra/tensorflow,dancingdan/tensorflow,annarev/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,arborh/tensorflow,adit-chandra/tensorflow,yongtang/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,gunan/tensorflow,yongtang/tensorflow,gautam1858/tensorflow,petewarden/tensorflow,davidzchen/tensorflow,dendisuhubdy/tensorflow,brchiu/tensorflow,nburn42/tensorflow,yongtang/tensorflow,xodus7/tensorflow,eaplatanios/tensorflow,ghchinoy/tensorflow,brchiu/tensorflow,renyi533/tensorflow,dancingdan/tensorflow,chemelnucfin/tensorflow,dongjoon-hyun/tensorflow,ghchinoy/tensorflow,nburn42/tensorflow,hfp/tensorflow-xsmm,arborh/tensorflow,allenlavoie/tensorflow,hfp/tensorflow-xsmm,snnn/tensorflow,gautam1858/tensorflow,kevin-coder/tensorflow-fork,snnn/tensorflow,DavidNorman/tensorflow,meteorcloudy/tensorflow,brchiu/tensorflow,dendisuhubdy/tensorflow,eaplatanios/tensorflow,benoitsteiner/tensorflow-xsmm,manipopopo/tensorflow,theflofly/tensorflow,caisq/tensorflow,frreiss/tensorflow-fred,cxxgtxy/tensorflow,jbedorf/tensorflow,AnishShah/tensorflow,chemelnucfin/tensorflow,alsrgv/tensorflow,alshedivat/tensorflow,DavidNorman/tensorflow,jendap/tensorflow,gautam1858/tensorflow,benoitsteiner/tensorflow-xsmm,aselle/tensorflow,eaplatanios/tensorflow,cxxgtxy/tensorflow,xodus7/tensorflow,jhseu/tensorflow,aselle/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,kobejean/tensorflow,xzturn/tensorflow,Intel-tensorflow/tensorflow,meteorcloudy/tensorflow,ageron/tensorflow,meteorcloudy/tensorflow,dancingdan/tensorflow,caisq/tensorflow,frreiss/tensorflow-fred,theflofly/tensorflow,snnn/tensorflow,girving/tensorflow,ghchinoy/tensorflow,benoitsteiner/tensorflow-xsmm,yongtang/tensorflow,gautam1858/tensorflow,frreiss/tensorflow-fred,yanchen036/tensorflow,cxxgtxy/tensorflow,yanchen036/tensorflow,jendap/tensorflow,arborh/tensorflow,frreiss/tensorflow-fred,adit-chandra/tensorflow,ghchinoy/tensorflow,apark263/tensorflow,annarev/tensorflow,allenlavoie/tensorflow,kobejean/tensorflow,yanchen036/tensorflow,cxxgtxy/tensorflow,ageron/tensorflow,snnn/tensorflow,jart/tensorflow,tensorflow/tensorflow-pywrap_saved_model,renyi533/tensorflow,aselle/tensorflow,seanli9jan/tensorflow,hehongliang/tensorflow,ppwwyyxx/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,Intel-tensorflow/tensorflow,allenlavoie/tensorflow,theflofly/tensorflow,yongtang/tensorflow,arborh/tensorflow,ageron/tensorflow,asimshankar/tensorflow,nburn42/tensorflow,tensorflow/tensorflow-pywrap_saved_model,adit-chandra/tensorflow,annarev/tensorflow,aam-at/tensorflow,ZhangXinNan/tensorflow,dancingdan/tensorflow,snnn/tensorflow,manipopopo/tensorflow,lukeiwanski/tensorflow,aselle/tensorflow,allenlavoie/tensorflow,eaplatanios/tensorflow,xodus7/tensorflow,gojira/tensorflow,chemelnucfin/tensorflow,gunan/tensorflow,gojira/tensorflow,petewarden/tensorflow,eaplatanios/tensorflow,renyi533/tensorflow,arborh/tensorflow,Intel-Corporation/tensorflow,tensorflow/tensorflow,chemelnucfin/tensorflow,xodus7/tensorflow,ghchinoy/tensorflow,Bismarrck/tensorflow,seanli9jan/tensorflow,alsrgv/tensorflow,allenlavoie/tensorflow,ghchinoy/tensorflow,xodus7/tensorflow,alshedivat/tensorflow,frreiss/tensorflow-fred,AnishShah/tensorflow,gautam1858/tensorflow,xzturn/tensorflow,sarvex/tensorflow,hfp/tensorflow-xsmm,freedomtan/tensorflow,hfp/tensorflow-xsmm,paolodedios/tensorflow,ppwwyyxx/tensorflow,alshedivat/tensorflow,annarev/tensorflow,drpngx/tensorflow,ppwwyyxx/tensorflow,kevin-coder/tensorflow-fork,alsrgv/tensorflow,arborh/tensorflow,gojira/tensorflow,AnishShah/tensorflow,tensorflow/tensorflow-pywrap_saved_model,jhseu/tensorflow,xzturn/tensorflow,asimshankar/tensorflow,DavidNorman/tensorflow,ZhangXinNan/tensorflow,brchiu/tensorflow,hehongliang/tensorflow,ppwwyyxx/tensorflow,kobejean/tensorflow,tensorflow/tensorflow,jendap/tensorflow,gautam1858/tensorflow,girving/tensorflow,frreiss/tensorflow-fred,Bismarrck/tensorflow,seanli9jan/tensorflow,drpngx/tensorflow,chemelnucfin/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,nburn42/tensorflow,aam-at/tensorflow,arborh/tensorflow,brchiu/tensorflow,allenlavoie/tensorflow,arborh/tensorflow,chemelnucfin/tensorflow,yanchen036/tensorflow,dongjoon-hyun/tensorflow,theflofly/tensorflow,alsrgv/tensorflow,jart/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,yanchen036/tensorflow,eaplatanios/tensorflow,renyi533/tensorflow,davidzchen/tensorflow,ageron/tensorflow,jendap/tensorflow,annarev/tensorflow,drpngx/tensorflow,davidzchen/tensorflow,kevin-coder/tensorflow-fork,jalexvig/tensorflow,davidzchen/tensorflow,alsrgv/tensorflow,girving/tensorflow,aldian/tensorflow,petewarden/tensorflow,benoitsteiner/tensorflow-xsmm,jart/tensorflow,tensorflow/tensorflow,snnn/tensorflow,yanchen036/tensorflow,renyi533/tensorflow,arborh/tensorflow,karllessard/tensorflow,xodus7/tensorflow,kevin-coder/tensorflow-fork,sarvex/tensorflow,jhseu/tensorflow,DavidNorman/tensorflow,kobejean/tensorflow,meteorcloudy/tensorflow,benoitsteiner/tensorflow-xsmm,xzturn/tensorflow,hehongliang/tensorflow,ZhangXinNan/tensorflow,gunan/tensorflow,ghchinoy/tensorflow,gautam1858/tensorflow,apark263/tensorflow,Intel-Corporation/tensorflow,gunan/tensorflow,seanli9jan/tensorflow,jalexvig/tensorflow,alshedivat/tensorflow,caisq/tensorflow,adit-chandra/tensorflow,tensorflow/tensorflow-pywrap_saved_model,dancingdan/tensorflow,dongjoon-hyun/tensorflow,aselle/tensorflow,dendisuhubdy/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,jalexvig/tensorflow,AnishShah/tensorflow,aam-at/tensorflow,aselle/tensorflow,renyi533/tensorflow,Bismarrck/tensorflow,hehongliang/tensorflow,kobejean/tensorflow,sarvex/tensorflow,alsrgv/tensorflow,aselle/tensorflow,girving/tensorflow,karllessard/tensorflow,brchiu/tensorflow,gojira/tensorflow,arborh/tensorflow,dancingdan/tensorflow,annarev/tensorflow,yanchen036/tensorflow,dancingdan/tensorflow,jalexvig/tensorflow,ghchinoy/tensorflow,tensorflow/tensorflow-pywrap_saved_model,jendap/tensorflow,jbedorf/tensorflow,hfp/tensorflow-xsmm,benoitsteiner/tensorflow-xsmm,asimshankar/tensorflow,AnishShah/tensorflow,annarev/tensorflow,aam-at/tensorflow,kevin-coder/tensorflow-fork,aam-at/tensorflow,dancingdan/tensorflow,kevin-coder/tensorflow-fork,adit-chandra/tensorflow,drpngx/tensorflow,kevin-coder/tensorflow-fork,lukeiwanski/tensorflow,kevin-coder/tensorflow-fork,ageron/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,gunan/tensorflow,gojira/tensorflow,girving/tensorflow,jbedorf/tensorflow,jart/tensorflow,seanli9jan/tensorflow,freedomtan/tensorflow,snnn/tensorflow,benoitsteiner/tensorflow-xsmm,lukeiwanski/tensorflow,jhseu/tensorflow,petewarden/tensorflow,alshedivat/tensorflow,annarev/tensorflow,eaplatanios/tensorflow,jart/tensorflow,eaplatanios/tensorflow,jalexvig/tensorflow,adit-chandra/tensorflow,Intel-Corporation/tensorflow,theflofly/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,gautam1858/tensorflow,xodus7/tensorflow,dongjoon-hyun/tensorflow,gautam1858/tensorflow,kobejean/tensorflow,frreiss/tensorflow-fred,frreiss/tensorflow-fred,renyi533/tensorflow,eaplatanios/tensorflow,girving/tensorflow,benoitsteiner/tensorflow-xsmm,gunan/tensorflow,hfp/tensorflow-xsmm,gunan/tensorflow,frreiss/tensorflow-fred,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow,arborh/tensorflow,ZhangXinNan/tensorflow,lukeiwanski/tensorflow,Bismarrck/tensorflow,nburn42/tensorflow,adit-chandra/tensorflow,AnishShah/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,DavidNorman/tensorflow,dongjoon-hyun/tensorflow,apark263/tensorflow,dancingdan/tensorflow,chemelnucfin/tensorflow,jhseu/tensorflow,theflofly/tensorflow,aselle/tensorflow,petewarden/tensorflow,chemelnucfin/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,xzturn/tensorflow,sarvex/tensorflow,brchiu/tensorflow,AnishShah/tensorflow,annarev/tensorflow,freedomtan/tensorflow,paolodedios/tensorflow,jalexvig/tensorflow,ZhangXinNan/tensorflow,tensorflow/tensorflow,brchiu/tensorflow,Intel-tensorflow/tensorflow,jhseu/tensorflow,meteorcloudy/tensorflow,aam-at/tensorflow,dendisuhubdy/tensorflow,paolodedios/tensorflow,alshedivat/tensorflow,annarev/tensorflow,freedomtan/tensorflow,DavidNorman/tensorflow,chemelnucfin/tensorflow,drpngx/tensorflow,kevin-coder/tensorflow-fork,lukeiwanski/tensorflow,jhseu/tensorflow,Bismarrck/tensorflow,dongjoon-hyun/tensorflow,apark263/tensorflow,chemelnucfin/tensorflow,jart/tensorflow,paolodedios/tensorflow,allenlavoie/tensorflow,aldian/tensorflow,kobejean/tensorflow,caisq/tensorflow,ageron/tensorflow,tensorflow/tensorflow,alshedivat/tensorflow,xzturn/tensorflow,petewarden/tensorflow,manipopopo/tensorflow,jendap/tensorflow,meteorcloudy/tensorflow,Intel-tensorflow/tensorflow,ageron/tensorflow,caisq/tensorflow,girving/tensorflow,snnn/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-pywrap_tf_optimizer,ZhangXinNan/tensorflow,gojira/tensorflow,seanli9jan/tensorflow,dendisuhubdy/tensorflow,ghchinoy/tensorflow,petewarden/tensorflow,ghchinoy/tensorflow,AnishShah/tensorflow,sarvex/tensorflow,ageron/tensorflow,aam-at/tensorflow,Intel-tensorflow/tensorflow,aldian/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,alsrgv/tensorflow,jbedorf/tensorflow,lukeiwanski/tensorflow,ghchinoy/tensorflow,Bismarrck/tensorflow,Bismarrck/tensorflow,karllessard/tensorflow,cxxgtxy/tensorflow,allenlavoie/tensorflow,gautam1858/tensorflow,sarvex/tensorflow,davidzchen/tensorflow,freedomtan/tensorflow,dongjoon-hyun/tensorflow,petewarden/tensorflow,yongtang/tensorflow,renyi533/tensorflow,sarvex/tensorflow,Intel-tensorflow/tensorflow,chemelnucfin/tensorflow,apark263/tensorflow,karllessard/tensorflow,davidzchen/tensorflow,cxxgtxy/tensorflow,paolodedios/tensorflow,benoitsteiner/tensorflow-xsmm,davidzchen/tensorflow,caisq/tensorflow,dongjoon-hyun/tensorflow,seanli9jan/tensorflow,caisq/tensorflow,paolodedios/tensorflow,kevin-coder/tensorflow-fork,dongjoon-hyun/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,asimshankar/tensorflow,yongtang/tensorflow,jbedorf/tensorflow,jbedorf/tensorflow,caisq/tensorflow,ppwwyyxx/tensorflow,tensorflow/tensorflow,allenlavoie/tensorflow,meteorcloudy/tensorflow,jbedorf/tensorflow,gunan/tensorflow,tensorflow/tensorflow-pywrap_saved_model,jbedorf/tensorflow,nburn42/tensorflow,seanli9jan/tensorflow,gunan/tensorflow,seanli9jan/tensorflow,tensorflow/tensorflow-pywrap_saved_model,karllessard/tensorflow,seanli9jan/tensorflow,dendisuhubdy/tensorflow,jhseu/tensorflow,gojira/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,ageron/tensorflow,karllessard/tensorflow,gojira/tensorflow,paolodedios/tensorflow,xodus7/tensorflow,alshedivat/tensorflow,asimshankar/tensorflow,chemelnucfin/tensorflow,gautam1858/tensorflow,AnishShah/tensorflow,Intel-Corporation/tensorflow,ppwwyyxx/tensorflow,girving/tensorflow,ageron/tensorflow,theflofly/tensorflow,tensorflow/tensorflow-pywrap_saved_model,jendap/tensorflow,Intel-tensorflow/tensorflow,gojira/tensorflow,jart/tensorflow,tensorflow/tensorflow,alsrgv/tensorflow,tensorflow/tensorflow,paolodedios/tensorflow,theflofly/tensorflow,manipopopo/tensorflow,manipopopo/tensorflow,apark263/tensorflow,jhseu/tensorflow,Bismarrck/tensorflow,apark263/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow-pywrap_saved_model,ppwwyyxx/tensorflow,dongjoon-hyun/tensorflow,jalexvig/tensorflow,manipopopo/tensorflow,jbedorf/tensorflow,Intel-Corporation/tensorflow,drpngx/tensorflow,frreiss/tensorflow-fred,yanchen036/tensorflow,ageron/tensorflow,ZhangXinNan/tensorflow,frreiss/tensorflow-fred,dendisuhubdy/tensorflow,hehongliang/tensorflow,ZhangXinNan/tensorflow,benoitsteiner/tensorflow-xsmm,aselle/tensorflow,ppwwyyxx/tensorflow,aldian/tensorflow,gunan/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-pywrap_tf_optimizer,yongtang/tensorflow,aam-at/tensorflow,petewarden/tensorflow,benoitsteiner/tensorflow-xsmm,AnishShah/tensorflow,dongjoon-hyun/tensorflow,Intel-tensorflow/tensorflow,eaplatanios/tensorflow,apark263/tensorflow,snnn/tensorflow,girving/tensorflow,davidzchen/tensorflow,karllessard/tensorflow,freedomtan/tensorflow,meteorcloudy/tensorflow,cxxgtxy/tensorflow,eaplatanios/tensorflow,allenlavoie/tensorflow,jart/tensorflow,davidzchen/tensorflow,dancingdan/tensorflow,yongtang/tensorflow,xodus7/tensorflow,aam-at/tensorflow,apark263/tensorflow,gojira/tensorflow,hehongliang/tensorflow,arborh/tensorflow,lukeiwanski/tensorflow,xodus7/tensorflow,karllessard/tensorflow,Intel-tensorflow/tensorflow,theflofly/tensorflow,xodus7/tensorflow,freedomtan/tensorflow,kobejean/tensorflow,seanli9jan/tensorflow,cxxgtxy/tensorflow,Intel-tensorflow/tensorflow,aldian/tensorflow,kobejean/tensorflow,girving/tensorflow,alsrgv/tensorflow,manipopopo/tensorflow,renyi533/tensorflow,karllessard/tensorflow,karllessard/tensorflow,gunan/tensorflow,dendisuhubdy/tensorflow,yongtang/tensorflow,adit-chandra/tensorflow,DavidNorman/tensorflow,Bismarrck/tensorflow,jendap/tensorflow,drpngx/tensorflow,aselle/tensorflow,drpngx/tensorflow,xzturn/tensorflow,asimshankar/tensorflow,DavidNorman/tensorflow,xzturn/tensorflow,adit-chandra/tensorflow,snnn/tensorflow,alsrgv/tensorflow,brchiu/tensorflow,caisq/tensorflow,tensorflow/tensorflow-pywrap_saved_model,Intel-Corporation/tensorflow,freedomtan/tensorflow,nburn42/tensorflow,dendisuhubdy/tensorflow,ppwwyyxx/tensorflow,sarvex/tensorflow,yongtang/tensorflow,girving/tensorflow,hfp/tensorflow-xsmm,renyi533/tensorflow,jalexvig/tensorflow,alshedivat/tensorflow,Bismarrck/tensorflow,ZhangXinNan/tensorflow,gautam1858/tensorflow,xzturn/tensorflow,jbedorf/tensorflow,meteorcloudy/tensorflow,jalexvig/tensorflow,asimshankar/tensorflow,tensorflow/tensorflow,aam-at/tensorflow,ppwwyyxx/tensorflow,alshedivat/tensorflow,asimshankar/tensorflow,gojira/tensorflow,caisq/tensorflow,allenlavoie/tensorflow,apark263/tensorflow,nburn42/tensorflow,manipopopo/tensorflow,DavidNorman/tensorflow,asimshankar/tensorflow,alsrgv/tensorflow,jbedorf/tensorflow,jhseu/tensorflow,aldian/tensorflow,ghchinoy/tensorflow,kevin-coder/tensorflow-fork,meteorcloudy/tensorflow,brchiu/tensorflow,ageron/tensorflow,manipopopo/tensorflow,drpngx/tensorflow,aldian/tensorflow,Intel-Corporation/tensorflow,dancingdan/tensorflow,jart/tensorflow,freedomtan/tensorflow,DavidNorman/tensorflow,adit-chandra/tensorflow,renyi533/tensorflow,Intel-Corporation/tensorflow,jhseu/tensorflow,aldian/tensorflow,jbedorf/tensorflow,davidzchen/tensorflow,jendap/tensorflow,lukeiwanski/tensorflow,kobejean/tensorflow,alsrgv/tensorflow,asimshankar/tensorflow,manipopopo/tensorflow,aselle/tensorflow,nburn42/tensorflow,jendap/tensorflow,lukeiwanski/tensorflow,DavidNorman/tensorflow,jalexvig/tensorflow,apark263/tensorflow,ppwwyyxx/tensorflow,jhseu/tensorflow,petewarden/tensorflow,hfp/tensorflow-xsmm,adit-chandra/tensorflow,ZhangXinNan/tensorflow,alshedivat/tensorflow,lukeiwanski/tensorflow,xzturn/tensorflow,petewarden/tensorflow,davidzchen/tensorflow,hfp/tensorflow-xsmm,Intel-tensorflow/tensorflow,AnishShah/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,aam-at/tensorflow,tensorflow/tensorflow,theflofly/tensorflow,drpngx/tensorflow,annarev/tensorflow,hehongliang/tensorflow,DavidNorman/tensorflow,ZhangXinNan/tensorflow,petewarden/tensorflow,jart/tensorflow,Bismarrck/tensorflow,theflofly/tensorflow,snnn/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,jendap/tensorflow