diff options
author | Fabian Groffen <grobian@gentoo.org> | 2010-08-06 20:08:23 +0000 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2010-08-06 20:08:23 +0000 |
commit | 61f9d21991801ba5b5be62a050d7c0bd8a9289e0 (patch) | |
tree | 3034e64fc2a74424020673d6174ae5fac1e0d98a /sys-devel/binutils-apple/files | |
parent | Migrate changes from Gentoo Prefix overlay. Keywords, EAPI3, build system twe... (diff) | |
download | historical-61f9d21991801ba5b5be62a050d7c0bd8a9289e0.tar.gz historical-61f9d21991801ba5b5be62a050d7c0bd8a9289e0.tar.bz2 historical-61f9d21991801ba5b5be62a050d7c0bd8a9289e0.zip |
Version bump to version from Develper Tools 3.2.3, thanks to Heiko Przybyl for the patching and LTO support
Package-Manager: portage-2.2.01.15449-prefix/cvs/Darwin powerpc
Diffstat (limited to 'sys-devel/binutils-apple/files')
-rw-r--r-- | sys-devel/binutils-apple/files/binutils-apple-3.2.3-as-dir.patch | 69 | ||||
-rw-r--r-- | sys-devel/binutils-apple/files/binutils-apple-3.2.3-ranlib.patch | 59 |
2 files changed, 128 insertions, 0 deletions
diff --git a/sys-devel/binutils-apple/files/binutils-apple-3.2.3-as-dir.patch b/sys-devel/binutils-apple/files/binutils-apple-3.2.3-as-dir.patch new file mode 100644 index 000000000000..a13ace81b550 --- /dev/null +++ b/sys-devel/binutils-apple/files/binutils-apple-3.2.3-as-dir.patch @@ -0,0 +1,69 @@ +handles the libexecdir for as and other fixes + +--- cctools-698/as/driver.c ++++ cctools-698/as/driver.c +@@ -27,6 +27,9 @@ + char **envp) + { + const char *LIB = ++#ifdef ASLIBEXECDIR ++ ASLIBEXECDIR; ++#else + #if defined(__OPENSTEP__) || defined(__HERA__) || \ + defined(__GONZO_BUNSEN_BEAKER__) || defined(__KODIAK__) + "/usr/libexec/"; +@@ -40,6 +42,7 @@ + #else + "/usr/local/libexec/gcc/darwin/"; + #endif ++#endif + const char *AS = "/as"; + + int i; +@@ -170,7 +170,11 @@ + } + + } ++#ifndef ASLIBEXECDIR + as = makestr(prefix, LIB, arch_name, AS, NULL); ++#else ++ as = makestr(LIB, arch_name, AS, NULL); ++#endif + + /* + * If this assembler exist try to run it else print an error message. +@@ -182,6 +182,10 @@ + else + exit(1); + } ++#ifdef ASLIBEXECDIR ++ as_local = ""; ++ { ++#else + as_local = makestr(prefix, LOCALLIB, arch_name, AS, NULL); + if(access(as_local, F_OK) == 0){ + argv[0] = as_local; +@@ -193,6 +198,7 @@ + exit(1); + } + else{ ++#endif + printf("%s: assembler (%s or %s) for architecture %s not " + "installed\n", progname, as, as_local, arch_name); + arch_flags = get_arch_flags(); +@@ -183,6 +190,7 @@ + printf("%s for architecture %s\n", as, arch_flags[i].name); + count++; + } ++#ifndef ASLIBEXECDIR + else{ + as_local = makestr(LOCALLIB, arch_flags[i].name, AS, NULL); + if(access(as_local, F_OK) == 0){ +@@ -193,6 +201,7 @@ + count++; + } + } ++#endif + } + if(count == 0) + printf("%s: no assemblers installed\n", progname); diff --git a/sys-devel/binutils-apple/files/binutils-apple-3.2.3-ranlib.patch b/sys-devel/binutils-apple/files/binutils-apple-3.2.3-ranlib.patch new file mode 100644 index 000000000000..e5292746eadf --- /dev/null +++ b/sys-devel/binutils-apple/files/binutils-apple-3.2.3-ranlib.patch @@ -0,0 +1,59 @@ +run ranlib before installation so we needn't touch permissions + +--- cctools-782/cbtlibs/Makefile 2009-12-16 20:34:18.000000000 +0100 ++++ cctools-782/cbtlibs/Makefile.new 2010-07-30 20:08:22.000000000 +0200 +@@ -84,9 +84,9 @@ libsyminfo.a: libsyminfo.o + + lib_ofiles_install: lib_ofiles + $(MKDIRS) $(DSTROOT)$(LOCLIBDIR) ++ ranlib $(DSTROOT)$(LOCLIBDIR)/libsyminfo.a + install -p -c -m 444 $(SYMROOT)/libsyminfo.a \ + $(DSTROOT)$(LOCLIBDIR)/libsyminfo.a +- ranlib $(DSTROOT)$(LOCLIBDIR)/libsyminfo.a + + -include $(OFILE_DIR)/Makedep + +--- cctools-782/libmacho/Makefile 2010-03-30 00:57:21.000000000 +0200 ++++ cctools-782/libmacho/Makefile.new 2010-07-30 20:07:57.000000000 +0200 +@@ -357,17 +357,17 @@ macos_lib_ofiles_install: all + $(MKDIRS) $(DSTROOT)$(ARCHIVEDIR) $(DSTROOT)$(DYLIBDIR) + if [ $(SRCROOT) = . ]; \ + then \ ++ ranlib $(DSTROOT)$(ARCHIVEDIR)/libmacho.a; \ + install -c -m 444 dtmp_obj/libmacho.a \ + $(DSTROOT)$(ARCHIVEDIR)/libmacho.a; \ +- ranlib $(DSTROOT)$(ARCHIVEDIR)/libmacho.a; \ + (cd $(DSTROOT)$(ARCHIVEDIR) ; \ + rm -f libmacho_debug.a ; ln -s libmacho.a libmacho_debug.a); \ ++ ranlib $(DSTROOT)$(ARCHIVEDIR)/libmacho_profile.a; \ + install -c -m 444 ptmp_obj/libmacho_pg.a \ + $(DSTROOT)$(ARCHIVEDIR)/libmacho_profile.a; \ +- ranlib $(DSTROOT)$(ARCHIVEDIR)/libmacho_profile.a; \ ++ ranlib $(DSTROOT)$(ARCHIVEDIR)/libmacho_static.a; \ + install -c -m 444 otmp_obj/libmacho_static.a \ + $(DSTROOT)$(ARCHIVEDIR)/libmacho_static.a; \ +- ranlib $(DSTROOT)$(ARCHIVEDIR)/libmacho_static.a; \ + install -c -m 555 dtmp_obj/libmacho.dylib \ + $(DSTROOT)$(DYLIBDIR)/libmacho.dylib; \ + strip -S $(DSTROOT)$(DYLIBDIR)/libmacho.dylib; \ +@@ -378,17 +378,17 @@ macos_lib_ofiles_install: all + $(DSTROOT)$(DYLIBDIR)/libmacho_debug.dylib; \ + strip -S $(DSTROOT)$(DYLIBDIR)/libmacho_debug.dylib; \ + else \ ++ ranlib $(DSTROOT)$(ARCHIVEDIR)/libmacho.a; \ + install -c -m 444 $(SYMROOT)/libmacho.a \ + $(DSTROOT)$(ARCHIVEDIR)/libmacho.a; \ +- ranlib $(DSTROOT)$(ARCHIVEDIR)/libmacho.a; \ + (cd $(DSTROOT)$(ARCHIVEDIR) ; \ + rm -f libmacho_debug.a ; ln -s libmacho.a libmacho_debug.a); \ ++ ranlib $(DSTROOT)$(ARCHIVEDIR)/libmacho_profile.a; \ + install -c -m 444 $(SYMROOT)/libmacho_pg.a \ + $(DSTROOT)$(ARCHIVEDIR)/libmacho_profile.a; \ +- ranlib $(DSTROOT)$(ARCHIVEDIR)/libmacho_profile.a; \ ++ ranlib $(DSTROOT)$(ARCHIVEDIR)/libmacho_static.a; \ + install -c -m 444 $(SYMROOT)/libmacho_static.a \ + $(DSTROOT)$(ARCHIVEDIR)/libmacho_static.a; \ +- ranlib $(DSTROOT)$(ARCHIVEDIR)/libmacho_static.a; \ + install -c -m 555 $(SYMROOT)/libmacho.dylib \ + $(DSTROOT)$(DYLIBDIR)/libmacho.dylib; \ + strip -S $(DSTROOT)$(DYLIBDIR)/libmacho.dylib; \ |