mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-30 22:56:33 +00:00
cmake: pass LDFLAGS/CFLAGS when building for the host
Passing LDFLAGS/CFLAGS when building for the host allows cmake to be compiled with the proper -rpath value (the -rpath option is added to HOST_LDFLAGS in a later commit). Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
8bd4231599
commit
77b5b803c7
@ -4,7 +4,9 @@ CMAKE_SITE=http://www.cmake.org/files/v2.8/
|
|||||||
|
|
||||||
define HOST_CMAKE_CONFIGURE_CMDS
|
define HOST_CMAKE_CONFIGURE_CMDS
|
||||||
(cd $(@D); \
|
(cd $(@D); \
|
||||||
./bootstrap --prefix=$(HOST_DIR)/usr --parallel=$(BR2_JLEVEL) \
|
LDFLAGS="$(HOST_LDFLAGS)" \
|
||||||
|
CFLAGS="$(HOST_CFLAGS)" \
|
||||||
|
./bootstrap --prefix=$(HOST_DIR)/usr --parallel=$(BR2_JLEVEL) \
|
||||||
)
|
)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user