automake: intel: move expat handling where it's used
authorHongxu Jia <hongxu.jia@windriver.com>
Wed, 18 Oct 2017 01:47:05 +0000 (09:47 +0800)
committerEric Engestrom <eric.engestrom@imgtec.com>
Wed, 18 Oct 2017 13:27:20 +0000 (14:27 +0100)
Linking libvulkan_intel.so can fail, due to unresolved references to
libexpat.so.

EXPAT_CFLAGS should be moved as well.

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/Makefile.common.am
src/intel/Makefile.tools.am

index 49e9c6a491290b4b0c7e6904200554674a299633..894dbb5208ccb2a8662f9dfab0be94bca8d5ceb7 100644 (file)
@@ -21,8 +21,9 @@
 
 noinst_LTLIBRARIES += common/libintel_common.la
 
-common_libintel_common_la_CFLAGS = $(AM_CFLAGS) $(LIBDRM_CFLAGS)
+common_libintel_common_la_CFLAGS = $(AM_CFLAGS) $(LIBDRM_CFLAGS) $(EXPAT_CFLAGS)
 common_libintel_common_la_SOURCES = $(COMMON_FILES)
+common_libintel_common_la_LIBADD = $(EXPAT_LIBS)
 
 if HAVE_PLATFORM_ANDROID
 common_libintel_common_la_CFLAGS += $(ANDROID_CFLAGS)
index 807122039b072202a89cc62c0b4b637294a8f4d4..af8cd5b6287f714942a0472ab97504c67e58800c 100644 (file)
@@ -31,7 +31,6 @@ tools_aubinator_SOURCES = \
 
 tools_aubinator_CFLAGS = \
        $(AM_CFLAGS) \
-       $(EXPAT_CFLAGS) \
        $(ZLIB_CFLAGS)
 
 tools_aubinator_LDADD = \
@@ -41,7 +40,6 @@ tools_aubinator_LDADD = \
        $(PER_GEN_LIBS) \
        $(PTHREAD_LIBS) \
        $(DLOPEN_LIBS) \
-       $(EXPAT_LIBS) \
        $(ZLIB_LIBS) \
        -lm
 
@@ -56,10 +54,8 @@ tools_aubinator_error_decode_LDADD = \
        compiler/libintel_compiler.la \
        $(top_builddir)/src/util/libmesautil.la \
        $(PTHREAD_LIBS) \
-       $(EXPAT_LIBS) \
        $(ZLIB_LIBS)
 
 tools_aubinator_error_decode_CFLAGS = \
        $(AM_CFLAGS) \
-       $(EXPAT_CFLAGS) \
        $(ZLIB_CFLAGS)