diff --git a/drivers/png/SCsub b/drivers/png/SCsub index 3f8e29c78ac..9dbffeed1f5 100644 --- a/drivers/png/SCsub +++ b/drivers/png/SCsub @@ -27,7 +27,7 @@ png_sources = [ import os if ("neon_enabled" in env and env["neon_enabled"]) and os.name!="nt": env_drivers.Append(CPPFLAGS=["-DPNG_ARM_NEON_OPT=2"]) - env_neon = env.Clone(); + env_neon = env_drivers.Clone(); if "S_compiler" in env: env_neon['CC'] = env['S_compiler'] #env_neon.Append(CPPFLAGS=["-DPNG_ARM_NEON"])