This might be a stupid question, but I'm not 100% sure and can't find a good answer via googling, so I thought I should ask it.
I'm building a few C libraries on a new compiler that will be linked with C++ code. I'm compiling the libraries from scratch because I'm moving up compiler versions from gcc4.x to gcc5.x, which requires me to recompile all of my C++ libraries with -std=gnu++14 (the language standard I'm targeting). My question is, do I need to add -std=gnu++14 to my CFLAG values when compiling to C libraries? I don't think I do, but want to confirm that I won't run into major issues down the road.
Thanks.