From 5b9142314b9c03e936a21afa3064eeade5a73c33 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Tue, 7 Jan 2014 10:50:29 +0000 Subject: qt5: add qtscript libc++ patch Fixes #25348. --- Library/Formula/qt5.rb | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'Library/Formula') diff --git a/Library/Formula/qt5.rb b/Library/Formula/qt5.rb index 1b4ff53c3..2c2c2a8ed 100644 --- a/Library/Formula/qt5.rb +++ b/Library/Formula/qt5.rb @@ -44,6 +44,12 @@ class Qt5 < Formula odie 'qt5: --with-demos-examples is no longer supported' if build.include? 'with-demos-examples' odie 'qt5: --with-debug-and-release is no longer supported' if build.include? 'with-debug-and-release' + def patches + # Fix QtScript linking against libstdc++ + # https://codereview.qt-project.org/#change,74777 + DATA if MacOS.version >= :mavericks + end + def install ENV.universal_binary if build.universal? args = ["-prefix", prefix, @@ -121,3 +127,18 @@ class Qt5 < Formula EOS end end + +__END__ +diff --git a/qtscript/src/script/script.pro b/qtscript/src/script/script.pro +index 8cb2f62..e48abac 100644 +--- a/qtscript/src/script/script.pro ++++ b/qtscript/src/script/script.pro +@@ -75,8 +75,4 @@ integrity { + CFLAGS += --diag_remark=236,82 + } + +-# WebKit doesn't compile in C++0x mode +-*-g++*:QMAKE_CXXFLAGS -= -std=c++0x -std=gnu++0x +-CONFIG -= c++11 +- + TR_EXCLUDE = $$WEBKITDIR/* -- cgit v1.2.3