It really depends on the system, but in general, for libc, there shouldn't be any real problem, unless you're using some special functions that were only added very recently. One of the design goals of libc is that it remain compatible for all time.
libstdc++ is a different matter, and I would strongly recomment
statically linking it (-static-libstdc++
).