e25f6398e2
Closes Homebrew/homebrew#18133. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
58 lines
1.4 KiB
Ruby
58 lines
1.4 KiB
Ruby
require 'formula'
|
|
|
|
class CrosstoolNg < Formula
|
|
homepage 'http://crosstool-ng.org'
|
|
url 'http://crosstool-ng.org/download/crosstool-ng/crosstool-ng-1.18.0.tar.bz2'
|
|
sha1 'ea9aa0521683486efb02596d9dfe00f66e18fdc3'
|
|
|
|
depends_on :automake
|
|
depends_on 'coreutils' => :build
|
|
depends_on 'wget'
|
|
depends_on 'gnu-sed'
|
|
depends_on 'gawk'
|
|
depends_on 'binutils'
|
|
depends_on 'libelf'
|
|
|
|
env :std
|
|
|
|
def patches
|
|
# Fixes clang offsetof compatability. Took better patch from #14547
|
|
DATA
|
|
end
|
|
|
|
def install
|
|
system "./configure", "--prefix=#{prefix}",
|
|
"--exec-prefix=#{prefix}",
|
|
"--with-objcopy=gobjcopy",
|
|
"--with-objdump=gobjdump",
|
|
"--with-readelf=greadelf",
|
|
"--with-libtool=glibtool",
|
|
"--with-libtoolize=glibtoolize",
|
|
"--with-install=ginstall",
|
|
"CFLAGS=-std=gnu89"
|
|
# Must be done in two steps
|
|
system "make"
|
|
system "make install"
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/ct-ng", "version"
|
|
end
|
|
end
|
|
|
|
__END__
|
|
diff --git a/kconfig/zconf.gperf b/kconfig/zconf.gperf
|
|
index c9e690e..21e79e4 100644
|
|
--- a/kconfig/zconf.gperf
|
|
+++ b/kconfig/zconf.gperf
|
|
@@ -7,6 +7,10 @@
|
|
%pic
|
|
%struct-type
|
|
|
|
+%{
|
|
+#include <stddef.h>
|
|
+%}
|
|
+
|
|
struct kconf_id;
|
|
|
|
static struct kconf_id *kconf_id_lookup(register const char *str, register unsigned int len);
|