diff options
-rw-r--r-- | RepositoryExternal.mk | 2 | ||||
-rw-r--r-- | config_host.mk.in | 1 | ||||
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | external/libetonyek/ExternalProject_libetonyek.mk | 1 |
4 files changed, 4 insertions, 2 deletions
diff --git a/RepositoryExternal.mk b/RepositoryExternal.mk index e44b08a2855f..a114e13d4322 100644 --- a/RepositoryExternal.mk +++ b/RepositoryExternal.mk @@ -157,7 +157,7 @@ else define gb_LinkTarget__use_glm_headers $(call gb_LinkTarget_use_unpacked,$(1),glm) $(call gb_LinkTarget_set_include,$(1),\ - -I$(call gb_UnpackedTarball_get_dir,glm) \ + $(GLM_CFLAGS) \ $$(INCLUDE) \ ) diff --git a/config_host.mk.in b/config_host.mk.in index 27422d30b198..ffb2debc239b 100644 --- a/config_host.mk.in +++ b/config_host.mk.in @@ -207,6 +207,7 @@ export GIT_LINK_SRC=@GIT_LINK_SRC@ export GIT_NEEDED_SUBMODULES=@GIT_NEEDED_SUBMODULES@ export GLEW_CFLAGS=$(gb_SPACE)@GLEW_CFLAGS@ export GLEW_LIBS=$(gb_SPACE)@GLEW_LIBS@ +export GLM_CFLAGS=$(gb_SPACE)@GLM_CFLAGS@ export GNOMEVFS_CFLAGS=$(gb_SPACE)@GNOMEVFS_CFLAGS@ export GNOMEVFS_LIBS=$(gb_SPACE)@GNOMEVFS_LIBS@ export GNUTLS_CFLAGS=$(gb_SPACE)@GNUTLS_CFLAGS@ diff --git a/configure.ac b/configure.ac index 738d19594f10..e016794ea0af 100644 --- a/configure.ac +++ b/configure.ac @@ -8633,7 +8633,9 @@ else AC_MSG_RESULT([internal]) BUILD_TYPE="$BUILD_TYPE GLM" SYSTEM_GLM= + GLM_CFLAGS="${ISYSTEM}${WORKDIR}/UnpackedTarball/glm" fi +AC_SUBST([GLM_CFLAGS]) AC_SUBST([SYSTEM_GLM]) dnl =================================================================== diff --git a/external/libetonyek/ExternalProject_libetonyek.mk b/external/libetonyek/ExternalProject_libetonyek.mk index 31ec898007e8..3de8605e52bf 100644 --- a/external/libetonyek/ExternalProject_libetonyek.mk +++ b/external/libetonyek/ExternalProject_libetonyek.mk @@ -39,7 +39,6 @@ $(call gb_ExternalProject_get_state_target,libetonyek,build) : BOOST_CFLAGS="$(if $(SYSTEM_BOOST),$(BOOST_CPPFLAGS),-I$(call gb_UnpackedTarball_get_dir,boost))" \ XML_CFLAGS="$(LIBXML_CFLAGS)" \ XML_LIBS="$(LIBXML_LIBS)" \ - $(call gb_Helper_optional,GLM,GLM_CFLAGS="-I$(call gb_UnpackedTarball_get_dir,glm)") \ $(if $(CROSS_COMPILING),--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)) \ && $(MAKE) \ ) |