COMPMID-556: Restrict standalone and opencl

Change-Id: I86cd254f3dc52c0f36437e59dbb874daf52c6bb7
Reviewed-on: http://mpd-gerrit.cambridge.arm.com/93266
Reviewed-by: Ioan-Cristian Szabo <ioan-cristian.szabo@arm.com>
Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Reviewed-by: Pablo Tello <pablo.tello@arm.com>
diff --git a/SConstruct b/SConstruct
index c2c76fb..627f7f2 100644
--- a/SConstruct
+++ b/SConstruct
@@ -190,7 +190,7 @@
     env.Append(CPPDEFINES = ['BARE_METAL'])
 
 if env['opencl']:
-    if env['os'] == 'bare_metal':
+    if env['os'] in ['bare_metal'] or env['standalone']:
         print("Cannot link OpenCL statically, which is required on bare metal")
         Exit(1)