Browse Source

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>
Thomas Petazzoni 15 years ago
parent
commit
77b5b803c7
1 changed files with 3 additions and 1 deletions
  1. 3 1
      package/cmake/cmake.mk

+ 3 - 1
package/cmake/cmake.mk

@@ -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