* [Buildroot] [git commit] package/pugixml: force-enable 'long long' support to support gcc<4.8
@ 2019-02-05 19:44 Peter Korsgaard
0 siblings, 0 replies; only message in thread
From: Peter Korsgaard @ 2019-02-05 19:44 UTC (permalink / raw)
To: buildroot
commit: https://git.buildroot.net/buildroot/commit/?id=189c63f276fa98ef3a59b6762d87cbe0cd9974ea
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
Although pugixml will enable 'long long' support automatically if it detects
C++11 (gcc 4.8+), we would like to support older gcc compilers too.
Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
package/pugixml/pugixml.mk | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/package/pugixml/pugixml.mk b/package/pugixml/pugixml.mk
index acf22604c4..8edaddd827 100644
--- a/package/pugixml/pugixml.mk
+++ b/package/pugixml/pugixml.mk
@@ -10,6 +10,12 @@ PUGIXML_LICENSE = MIT
PUGIXML_LICENSE_FILES = readme.txt
PUGIXML_INSTALL_STAGING = YES
+# Pugixml will automatically enable 'long long' support on C++11 compilers,
+# which means gcc 4.8+. As gcc always supports the 'long long' type,
+# force-enable this option to support older gcc versions. See also:
+# https://gcc.gnu.org/onlinedocs/gcc/Long-Long.html
+PUGIXML_BUILD_DEFINES += PUGIXML_HAS_LONG_LONG
+
ifeq ($(BR2_PACKAGE_PUGIXML_XPATH_SUPPORT),)
PUGIXML_BUILD_DEFINES += PUGIXML_NO_XPATH
endif
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2019-02-05 19:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-05 19:44 [Buildroot] [git commit] package/pugixml: force-enable 'long long' support to support gcc<4.8 Peter Korsgaard
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.