mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
Add '-flto' flag to pkg-config if the libraries built with lto (#3274)
If we build Jerry libraries with lto, this information should be passed to pkg-config as well. JerryScript-DCO-1.0-Signed-off-by: Adam Kallai kadam@inf.u-szeged.hu
This commit is contained in:
parent
f93fa98a75
commit
cbae33a689
@ -400,6 +400,11 @@ target_include_directories(${JERRY_CORE_NAME} PRIVATE ${INCLUDE_CORE_PRIVATE})
|
||||
|
||||
set(JERRY_CORE_PKGCONFIG_REQUIRES)
|
||||
set(JERRY_CORE_PKGCONFIG_LIBS)
|
||||
set(JERRY_CORE_PKGCONFIG_CFLAGS)
|
||||
|
||||
if(ENABLE_LTO)
|
||||
set(JERRY_CORE_PKGCONFIG_CFLAGS "${JERRY_CORE_PKGCONFIG_CFLAGS} -flto")
|
||||
endif()
|
||||
|
||||
if(JERRY_LIBM)
|
||||
target_link_libraries(${JERRY_CORE_NAME} jerry-libm)
|
||||
|
||||
@ -9,4 +9,4 @@ Version: 1.0
|
||||
Requires.private: @JERRY_CORE_PKGCONFIG_REQUIRES@ # NOTE: libjerry-port-default* is not added as a required package
|
||||
Libs: -L${libdir} -ljerry-core
|
||||
Libs.private: @JERRY_CORE_PKGCONFIG_LIBS@
|
||||
Cflags: -I${includedir}
|
||||
Cflags: -I${includedir} @JERRY_CORE_PKGCONFIG_CFLAGS@
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user