Commit 6c50dbcc authored by Ting-Wei Lan's avatar Ting-Wei Lan Committed by Milan Crha
Browse files

Bug 775597 - Add -L flags set in LDFLAGS to g-ir-scanner command line

parent f1f2c067
......@@ -211,6 +211,9 @@ macro(gir_add_introspection_simple gir_library pkg_export_prefix gir_library_ver
_gir_list_prefix(_gir_extra_libdirs ${gir_extra_libdirs_var} "--library-path=")
_gir_list_prefix(_gir_deps ${gir_deps_var} "--include-uninstalled=")
string(REGEX MATCHALL "-L[^ ]*"
_extra_library_path "${CMAKE_SHARED_LINKER_FLAGS}")
set(INTROSPECTION_SCANNER_ARGS
--add-include-path=${CMAKE_BINARY_DIR}
--add-include-path=${CMAKE_BINARY_DIR}/src
......@@ -225,6 +228,7 @@ macro(gir_add_introspection_simple gir_library pkg_export_prefix gir_library_ver
${_gir_identifies_prefixes}
${_gir_deps}
--library-path=${LIB_INSTALL_DIR}
${_extra_library_path}
--pkg-export ${pkg_export_prefix}-${gir_library_version}
--c-include=${c_include}
--cflags-begin
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment