After GDAL completes compiling, cd out of the directory until you’re in the directory containing GDAL in my case it’s ~/Downloads (which is where I cloned the GDAL subdir source)
Now locate the parent directory of the gdal-config binary. It has to be the parent directory otherwise the pip install will fail.