qt: QT_COORD_TYPE_DOUBLE should only be set on soft float
authorRichard Genoud <richard.genoud@gmail.com>
Tue, 28 Apr 2015 15:42:27 +0000 (17:42 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 28 Apr 2015 19:23:18 +0000 (21:23 +0200)
If QT_COORD_TYPE_DOUBLE is forced and hard float is used, Qt compilation
breaks because it can't find hard coded operations on double.

Moreover, QT_COORD_TYPE is float only if QT_NO_FPU is set.
(cf src/corelib/global/qglobal.h)

So, we can safely make the QT_COORD_TYPE_DOUBLE option depend on
BR2_SOFT_FLOAT.

Reported-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Richard Genoud <richard.genoud@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/qt/Config.in

index 83fdeec812bbd3d717ea7726fb4b92d1ed38f9d4..9568b7010cffb16e0977bf007b64be1591cb8d11 100644 (file)
@@ -121,6 +121,7 @@ config BR2_PACKAGE_QT_CONFIG_FILE
          file, which Buildroot will give to Qt at compile time.
 
 config BR2_PACKAGE_QT_QT_COORD_TYPE_DOUBLE
+       depends on BR2_SOFT_FLOAT
        bool "QT_COORD_TYPE to double"
        help
          Set QT_COORD_TYPE to double. On ARM-based platforms, qreal