diff --git a/package/poppler/poppler.mk b/package/poppler/poppler.mk index 9e9bfc9cba..18c044a9f6 100644 --- a/package/poppler/poppler.mk +++ b/package/poppler/poppler.mk @@ -131,4 +131,12 @@ else POPPLER_CONF_OPTS += -DUSE_FLOAT=ON endif +POPPLER_CXXFLAGS = $(TARGET_CXXCFLAGS) + +ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_68485),y) +POPPLER_CXXFLAGS += -O0 +endif + +POPPLER_CONF_OPTS += -DCMAKE_CXX_FLAGS="$(POPPLER_CXXFLAGS)" + $(eval $(cmake-package))