That's not at all simple. The corollary of that statement is "if you don't like the GPL, don't develop applications for GNU/Linux".
GCC itself is GPL, but its libraries (along with glibc) have an exception that permits linking against non-GPL software.
That they consider it a derivative work is their -legal opinion-. Remember their license still doesn't supercede local laws and a court could invalidate Wordpress' legal opinion of what a derivative work is.