-# ppc64 optimizer still blows up on some files, so we use -O0 to turn it
-# off on a per file basis
-.if (${MACHINE_ARCH} == ppc64)
-OPTIMIZE-acl_entry.c = -O0
-# glob-fbsd.c fails with -static -Os (3869444) so turn off optimization
-OPTIMIZE-glob-fbsd.c = -O0
+# workaround for 4268581
+.if make(lib${LIB}_static.a)
+OPTIMIZE-glob-fbsd.c += -O0