mirror of
git://code.qt.io/qt/qt5.git
synced 2026-03-27 16:59:12 +08:00
For some unknown reason the compilation has started using -std=gnu23, which breaks the build. Forcing "-std=gnu89" allows the build to succeed, so let's do that as a workaround to unblock qt5, while we continue investigation why this broke. Task-number: QTQAINFRA-7775 Change-Id: I59a29ab9a20d5b2302d72b1e6fbbe52c7ecd277a Reviewed-by: Dimitrios Apostolou <jimis@qt.io> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
34 lines
972 B
Ruby
34 lines
972 B
Ruby
class Libiodbc < Formula
|
|
desc "Database connectivity layer based on ODBC. (alternative to unixodbc)"
|
|
homepage "http://www.iodbc.org/dataspace/iodbc/wiki/iODBC/"
|
|
url "https://github.com/openlink/iODBC/archive/v3.52.15.tar.gz"
|
|
sha256 "f6b376b6dffb4807343d6d612ed527089f99869ed91bab0bbbb47fdea5ed6ace"
|
|
|
|
option "with-universal", "Build as universal binary"
|
|
|
|
if build.with? "universal"
|
|
version "3.52.15-universal"
|
|
env :std
|
|
end
|
|
|
|
depends_on "autoconf" => :build
|
|
depends_on "automake" => :build
|
|
depends_on "libtool" => :build
|
|
|
|
conflicts_with "unixodbc", :because => "both install 'odbcinst.h' header"
|
|
|
|
def install
|
|
if build.with? "universal"
|
|
ENV['CFLAGS'] = '-O -arch arm64 -arch x86_64 -mmacosx-version-min=10.9 -std=gnu89'
|
|
end
|
|
system "./autogen.sh"
|
|
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
system bin/"iodbc-config", "--version"
|
|
end
|
|
end
|
|
|