summaryrefslogtreecommitdiffstats
path: root/board/bf526-ezbrd
diff options
context:
space:
mode:
Diffstat (limited to 'board/bf526-ezbrd')
-rw-r--r--board/bf526-ezbrd/config.mk7
1 files changed, 4 insertions, 3 deletions
diff --git a/board/bf526-ezbrd/config.mk b/board/bf526-ezbrd/config.mk
index f1ef9bf682..0d3df2dbd9 100644
--- a/board/bf526-ezbrd/config.mk
+++ b/board/bf526-ezbrd/config.mk
@@ -7,6 +7,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
OpenPOWER on IntegriCloud