flatcc: fix debug build
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sun, 18 Nov 2018 16:58:48 +0000 (17:58 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Sun, 18 Nov 2018 18:02:05 +0000 (19:02 +0100)
flatcc is named flatcc_d if BR2_ENABLE_DEBUG is set because of the
following line in CMakeLists.txt: set(CMAKE_DEBUG_POSTFIX "_d")

So update FLATCC_TARGET_REMOVE_FLATCC_COMPILER hook to replace flatcc
by flatcc*

Fixes:
 - http://autobuild.buildroot.org/results/a47f49cd2fdd809257bd7e83dca620f2e6aac85b

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/flatcc/flatcc.mk

index 9f961a37b1bce70a708de80a7555a84c80429f7d..1c8d0ec7fb49b27c2cc87be25e535affd2500462 100644 (file)
@@ -19,8 +19,9 @@ HOST_FLATCC_CONF_OPTS += -DFLATCC_TEST=OFF
 FLATCC_CONF_OPTS += -DFLATCC_INSTALL=ON
 HOST_FLATCC_CONF_OPTS += -DFLATCC_INSTALL=ON
 
+# compiler is named flatcc or flatcc_d depending on BR2_ENABLE_DEBUG value
 define FLATCC_TARGET_REMOVE_FLATCC_COMPILER
-       rm $(TARGET_DIR)/usr/bin/flatcc
+       rm $(TARGET_DIR)/usr/bin/flatcc*
 endef
 
 FLATCC_POST_INSTALL_TARGET_HOOKS += FLATCC_TARGET_REMOVE_FLATCC_COMPILER