summaryrefslogtreecommitdiff
path: root/board/br4/config.mk
diff options
context:
space:
mode:
Diffstat (limited to 'board/br4/config.mk')
-rw-r--r--board/br4/config.mk7
1 files changed, 4 insertions, 3 deletions
diff --git a/board/br4/config.mk b/board/br4/config.mk
index 5c18d5c..2436ec0 100644
--- a/board/br4/config.mk
+++ b/board/br4/config.mk
@@ -9,6 +9,7 @@
# SPDX-License-Identifier: GPL-2.0+
#
-CFLAGS_lib += -O2
-CFLAGS_lib/lzma += -O2
-CFLAGS_lib/zlib += -O2
+# FIX ME
+ifneq ($(filter lib lib/lzma lib/zlib, $(obj)),)
+ccflags-y := -O2
+endif