From b1c9cf4434f0d6352924b871438112799a9850ef Mon Sep 17 00:00:00 2001 From: Thomas Debesse Date: Thu, 11 Mar 2021 07:06:52 +0100 Subject: [PATCH] cmake: pass C compiler option to gtkglext build tools --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 30ec6ce4..d3f8b284 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -394,12 +394,14 @@ if (BUILTIN_GTKGLEXT) GIT_REPOSITORY https://gitlab.gnome.org/illwieckz/gtkglext.git GIT_TAG ${GTKGLEXT_GIT_TAG} BUILD_IN_SOURCE ON - CONFIGURE_COMMAND export CFLAGS=${GTKGLEXT_LDFLAGS} + CONFIGURE_COMMAND export CC=${CMAKE_C_COMPILER} + CONFIGURE_COMMAND && export CFLAGS=${GTKGLEXT_LDFLAGS} CONFIGURE_COMMAND && export LDFLAGS=${GTKGLEXT_CFLAGS} CONFIGURE_COMMAND && export NOCONFIGURE=1 CONFIGURE_COMMAND && ./autogen.sh CONFIGURE_COMMAND && ./configure --prefix "${BUILTINS_INSTALL_DIR}" ${CONFIGURE_OPTIONS} BUILD_COMMAND $(MAKE) + BUILD_COMMAND CC=${CMAKE_C_COMPILER} BUILD_COMMAND CFLAGS=${GTKGLEXT_CFLAGS} BUILD_COMMAND LDFLAGS=${GTKGLEXT_LDFLAGS} INSTALL_COMMAND $(MAKE) install -- 2.39.2