Fix FTBFS in armhf
authorAlberto Garcia <berto@igalia.com>
Fri, 2 Sep 2016 08:18:33 +0000 (08:18 +0000)
committerAlberto Garcia <berto@igalia.com>
Fri, 2 Sep 2016 08:18:33 +0000 (08:18 +0000)
===================================================================

Gbp-Pq: Name ftbfs-armhf.patch

Source/JavaScriptCore/GNUmakefile.am
Source/autotools/SetupAutomake.m4

index ab058b606f41df879bd162f3bafd7591a79e48e1..c0d38a8b2a7983a35c46812418488550e856997b 100644 (file)
@@ -80,9 +80,11 @@ javascriptcore_cppflags += \
        -fno-omit-frame-pointer
 
 if COMPILER_GCC
+if !TARGET_ARMHF
 javascriptcore_cppflags += \
        -fno-tree-dce
 endif
+endif
 
 javascriptcore_cflags += \
        $(global_cflags) \
index e99bc5379c9ed421cf6f837f5b36e611bb49402a..7209b678c6a7336be145e95fc747237344f6219c 100644 (file)
@@ -67,3 +67,5 @@ AM_CONDITIONAL([ENABLE_SPELLCHECK],[test "$enable_spellcheck" = "yes"])
 
 # Introspection conditional.
 AM_CONDITIONAL([ENABLE_INTROSPECTION],[test "$enable_introspection" = "yes"])
+
+AM_CONDITIONAL([TARGET_ARMHF],[test "$build" = "arm-unknown-linux-gnueabihf"])