[Android Software/Hacking General [Developers Only]] Adromir:
Sorry, i didnt have time to test it earlier, but i added -lgomp which removed the error. I made a test branch without any other Optimisations to avoid conflicts, but now i am getting this error:

target Pack Relocations: libmedia (/root/uberaicp/out/target/product/himaul/obj/SHARED_LIBRARIES/libmedia_intermediates/PACKED/libmedia.so)
/root/uberaicp/out/target/product/himaul/obj/SHARED_LIBRARIES/libRSDriver_intermediates/driver/rsdAllocation.o: In function `rsdAllocationGenerateMipmaps(android::renderscript::Context const*, android::renderscript::Allocation const*)':
/root/uberaicp/frameworks/rs/driver/rsdAllocation.cpp:1223: undefined reference to `GOMP_parallel_loop_runtime_start'
/root/uberaicp/frameworks/rs/driver/rsdAllocation.cpp:1223: undefined reference to `GOMP_parallel_end'
/root/uberaicp/frameworks/rs/driver/rsdAllocation.cpp:1226: undefined reference to `GOMP_parallel_loop_runtime_start'
/root/uberaicp/frameworks/rs/driver/rsdAllocation.cpp:1226: undefined reference to `GOMP_parallel_end'
/root/uberaicp/out/target/product/himaul/obj/SHARED_LIBRARIES/libRSDriver_intermediates/driver/rsdAllocation.o: In function `_ZL6mip565PKN7android12renderscript10AllocationEi23RsAllocationCubemapFace_polly_subfn':
frameworks/rs/driver/rsdAllocation.cpp:(.text._ZL6mip565PKN7android12renderscript10AllocationEi23RsAllocationCubemapFace_polly_subfn+0x34): undefined reference to `GOMP_loop_runtime_next'
/root/uberaicp/out/target/product/himaul/obj/SHARED_LIBRARIES/libRSDriver_intermediates/driver/rsdAllocation.o: In function `_ZL6mip565PKN7android12renderscript10AllocationEi23RsAllocationCubemapFace_polly_subfn':
/root/uberaicp/frameworks/rs/rsCppUtils.h:273: undefined reference to `GOMP_loop_runtime_next'
/root/uberaicp/frameworks/rs/rsCppUtils.h:273: undefined reference to `GOMP_loop_end_nowait'
/root/uberaicp/out/target/product/himaul/obj/SHARED_LIBRARIES/libRSDriver_intermediates/driver/rsdAllocation.o: In function `_ZL4mip8PKN7android12renderscript10AllocationEi23RsAllocationCubemapFace_polly_subfn':
frameworks/rs/driver/rsdAllocation.cpp:(.text._ZL4mip8PKN7android12renderscript10AllocationEi23RsAllocationCubemapFace_polly_subfn+0x3c): undefined reference to `GOMP_loop_runtime_next'
/root/uberaicp/out/target/product/himaul/obj/SHARED_LIBRARIES/libRSDriver_intermediates/driver/rsdAllocation.o: In function `_ZL4mip8PKN7android12renderscript10AllocationEi23RsAllocationCubemapFace_polly_subfn':
/root/uberaicp/frameworks/rs/driver/rsdAllocation.cpp:1203: undefined reference to `GOMP_loop_runtime_next'
/root/uberaicp/frameworks/rs/driver/rsdAllocation.cpp:1203: undefined reference to `GOMP_loop_end_nowait'
INFO: Compaction : 364544 bytes
target Symbolic: libmedia (/root/uberaicp/out/target/product/himaul/symbols/system/lib64/libmedia.so)
clang-3.8: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [/root/uberaicp/out/target/product/himaul/obj/SHARED_LIBRARIES/libRSDriver_intermediates/LINKED/libRSDriver.so] Error 1
make: *** Waiting for unfinished jobs....
DroidDoc took 28 sec. to write docs to /root/uberaicp/out/target/common/docs/api-stubs
make: Leaving directory `/root/uberaicp'