Android toolchain with libgomp support

Hello all,
I want to enable omp support in the Android toolchian, and for that I
have changed GCC_CONFIG_ARGS with this --enable_libgomp.

GCC_CONFIG_ARGS += $(GCC_CONFIG_LIBSTDCXX_V3) --disable-libssp \
        --enable-threads --disable-nls --disable-libmudflap --enable-
libgomp \
        --disable-libstdc__-v3 --disable-sjlj-exceptions --disable-

However I face an issue while compilation:
checking size of int... 0
checking for uintptr_t... no
checking for a 64-bit type... unsigned long long
checking for pid_t... no
checking for library containing strerror... configure: error: Link
tests are not allowed after GCC_NO_EXECUTABLES.
make[2]: *** [configure-target-libiberty] Error 1
make[2]: Leaving directory `/home/melwyn/toolchain/toolchain_objs_ndk/
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/melwyn/toolchain/toolchain_objs_ndk/
make: *** [stmp-build-target-gcc] Error 2

On examining config.log