--- SConstruct.orig	2020-06-13 17:42:45.000000000 +0800
+++ SConstruct	2022-06-01 18:56:53.000000000 +0800
@@ -686,6 +686,15 @@
 else:
     conf.env.Append(CCFLAGS=['-fPIC'])
 
+# Universal binaries support
+conf.env.Append(CCFLAGS=[
+    '-arch', '@ARCH@'
+])
+
+conf.env.Append(LINKFLAGS=[
+    '-arch', '@ARCH@'
+])
+
 # check _mm_crc32_u64 (SSE4.2) support:
 conf.check_mm_crc32_u64()
 
