diff options
Diffstat (limited to 'lang/gnat/files/patch-aa')
-rw-r--r-- | lang/gnat/files/patch-aa | 161 |
1 files changed, 28 insertions, 133 deletions
diff --git a/lang/gnat/files/patch-aa b/lang/gnat/files/patch-aa index eb8cd4588e4a..62e53dc189b9 100644 --- a/lang/gnat/files/patch-aa +++ b/lang/gnat/files/patch-aa @@ -1,141 +1,36 @@ -diff -c orig/Makefile.in gcc/Makefile.in -*** orig/Makefile.in Thu Mar 27 17:32:15 1997 ---- gcc-2.7.2.1/Makefile.in Fri Apr 4 19:55:09 1997 +*** ./Makefile.in.orig Wed Jun 23 02:34:31 1999 +--- ./Makefile.in Wed Jun 23 02:35:29 1999 *************** -*** 189,200 **** - local_prefix = /usr/local - # Directory in which to put host dependent programs and libraries - exec_prefix = $(prefix) - # Directory in which to put the executable for the command `gcc' - bindir = $(exec_prefix)/bin - # Directory in which to put the directories used by the compiler. - libdir = $(exec_prefix)/lib - # Directory in which the compiler finds executables, libraries, etc. -! libsubdir = $(libdir)/gcc-lib/$(target)/$(version) - # Directory in which the compiler finds g++ includes. - gxx_include_dir= $(libdir)/g++-include - # Directory to search for site-specific includes. ---- 189,202 ---- - local_prefix = /usr/local - # Directory in which to put host dependent programs and libraries - exec_prefix = $(prefix) -+ # directory to hold compilers -+ compdir = $(prefix)/libexec/ada - # Directory in which to put the executable for the command `gcc' - bindir = $(exec_prefix)/bin - # Directory in which to put the directories used by the compiler. - libdir = $(exec_prefix)/lib - # Directory in which the compiler finds executables, libraries, etc. -! libsubdir = $(libdir) - # Directory in which the compiler finds g++ includes. - gxx_include_dir= $(libdir)/g++-include - # Directory to search for site-specific includes. -*************** -*** 213,219 **** - mandir = $(prefix)/man/man1 - # Directory in which to find other cross-compilation tools and headers. - # Used in install-cross. -! tooldir = $(exec_prefix)/$(target) - # Dir for temp files. - tmpdir = /tmp +*** 152,158 **** + ENQUIRE_LDFLAGS = $(LDFLAGS) ---- 215,221 ---- - mandir = $(prefix)/man/man1 - # Directory in which to find other cross-compilation tools and headers. - # Used in install-cross. -! tooldir = $(exec_prefix) - # Dir for temp files. - tmpdir = /tmp + # Sed command to transform gcc to installed name. Overwritten by configure. +! program_transform_name = -e s,x,x, + program_transform_cross_name = -e s,^,$(target_alias)-, -*************** -*** 1141,1148 **** + # Tools to use when building a cross-compiler. +--- 152,158 ---- + ENQUIRE_LDFLAGS = $(LDFLAGS) - gcc.o: gcc.c $(CONFIG_H) multilib.h config.status $(lang_specs_files) - $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ - -DSTANDARD_STARTFILE_PREFIX=\"$(libdir)/\" \ -! -DSTANDARD_EXEC_PREFIX=\"$(libdir)/gcc-lib/\" \ - -DDEFAULT_TARGET_VERSION=\"$(version)\" \ - -DDEFAULT_TARGET_MACHINE=\"$(target)\" \ - -DTOOLDIR_BASE_PREFIX=\"$(exec_prefix)/\" \ ---- 1143,1152 ---- + # Sed command to transform gcc to installed name. Overwritten by configure. +! program_transform_name = -e s,^,ada, + program_transform_cross_name = -e s,^,$(target_alias)-, - gcc.o: gcc.c $(CONFIG_H) multilib.h config.status $(lang_specs_files) - $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ -+ -DFREEBSD_NATIVE \ -+ -DFREEBSD_PREFIX=\"$(prefix)\" \ - -DSTANDARD_STARTFILE_PREFIX=\"$(libdir)/\" \ -! -DSTANDARD_EXEC_PREFIX=\"$(libdir)/\" \ - -DDEFAULT_TARGET_VERSION=\"$(version)\" \ - -DDEFAULT_TARGET_MACHINE=\"$(target)\" \ - -DTOOLDIR_BASE_PREFIX=\"$(exec_prefix)/\" \ -*************** -*** 2055,2069 **** - # Create the installation directory. - install-dir: - -if [ -d $(libdir) ] ; then true ; else mkdir $(libdir) ; chmod a+rx $(libdir) ; fi -- -if [ -d $(libdir)/gcc-lib ] ; then true ; else mkdir $(libdir)/gcc-lib ; chmod a+rx $(libdir)/gcc-lib ; fi - # This dir isn't currently searched by cpp. - # -if [ -d $(libdir)/gcc-lib/include ] ; then true ; else mkdir $(libdir)/gcc-lib/include ; chmod a+rx $(libdir)/gcc-lib/include ; fi -! -if [ -d $(libdir)/gcc-lib/$(target) ] ; then true ; else mkdir $(libdir)/gcc-lib/$(target) ; chmod a+rx $(libdir)/gcc-lib/$(target) ; fi -! -if [ -d $(libdir)/gcc-lib/$(target)/$(version) ] ; then true ; else mkdir $(libdir)/gcc-lib/$(target)/$(version) ; chmod a+rx $(libdir)/gcc-lib/$(target)/$(version) ; fi -! -if [ -d $(libdir)/gcc-lib/$(target)/$(version)/include ] ; then true ; else mkdir $(libdir)/gcc-lib/$(target)/$(version)/include ; chmod a+rx $(libdir)/gcc-lib/$(target)/$(version)/include ; fi - -if [ -d $(bindir) ] ; then true ; else mkdir $(bindir) ; chmod a+rx $(bindir) ; fi - -if [ -d $(includedir) ] ; then true ; else mkdir $(includedir) ; chmod a+rx $(includedir) ; fi - -if [ -d $(tooldir) ] ; then true ; else mkdir $(tooldir) ; chmod a+rx $(tooldir) ; fi - -if [ -d $(assertdir) ] ; then true ; else mkdir $(assertdir) ; chmod a+rx $(assertdir) ; fi - -if [ -d $(infodir) ] ; then true ; else mkdir $(infodir) ; chmod a+rx $(infodir) ; fi - # We don't use mkdir -p to create the parents of mandir, ---- 2059,2073 ---- - # Create the installation directory. - install-dir: - -if [ -d $(libdir) ] ; then true ; else mkdir $(libdir) ; chmod a+rx $(libdir) ; fi - # This dir isn't currently searched by cpp. - # -if [ -d $(libdir)/gcc-lib/include ] ; then true ; else mkdir $(libdir)/gcc-lib/include ; chmod a+rx $(libdir)/gcc-lib/include ; fi -! # -if [ -d $(libdir)/gcc-lib/$(target) ] ; then true ; else mkdir $(libdir)/gcc-lib/$(target) ; chmod a+rx $(libdir)/gcc-lib/$(target) ; fi -! # -if [ -d $(libdir)/gcc-lib/$(target)/$(version) ] ; then true ; else mkdir $(libdir)/gcc-lib/$(target)/$(version) ; chmod a+rx $(libdir)/gcc-lib/$(target)/$(version) ; fi -! # -if [ -d $(libdir)/gcc-lib/$(target)/$(version)/include ] ; then true ; else mkdir $(libdir)/gcc-lib/$(target)/$(version)/include ; chmod a+rx $(libdir)/gcc-lib/$(target)/$(version)/include ; fi - -if [ -d $(bindir) ] ; then true ; else mkdir $(bindir) ; chmod a+rx $(bindir) ; fi - -if [ -d $(includedir) ] ; then true ; else mkdir $(includedir) ; chmod a+rx $(includedir) ; fi - -if [ -d $(tooldir) ] ; then true ; else mkdir $(tooldir) ; chmod a+rx $(tooldir) ; fi -+ -if [ -d $(compdir) ] ; then true ; else mkdir $(compdir) ; chmod a+rx $(compdir) ; fi - -if [ -d $(assertdir) ] ; then true ; else mkdir $(assertdir) ; chmod a+rx $(assertdir) ; fi - -if [ -d $(infodir) ] ; then true ; else mkdir $(infodir) ; chmod a+rx $(infodir) ; fi - # We don't use mkdir -p to create the parents of mandir, -*************** -*** 2077,2084 **** - install-common: native install-dir $(EXTRA_PARTS) lang.install-common - for file in $(COMPILERS); do \ - if [ -f $$file ] ; then \ -! rm -f $(libsubdir)/$$file; \ -! $(INSTALL_PROGRAM) $$file $(libsubdir)/$$file; \ - else true; \ - fi; \ - done ---- 2081,2088 ---- - install-common: native install-dir $(EXTRA_PARTS) lang.install-common - for file in $(COMPILERS); do \ - if [ -f $$file ] ; then \ -! rm -f $(compdir)/$$file; \ -! $(INSTALL_PROGRAM) $$file $(compdir)/$$file; \ - else true; \ - fi; \ - done + # Tools to use when building a cross-compiler. *************** -*** 2110,2117 **** - $(INSTALL_DATA) SYSCALLS.c.X $(libsubdir)/SYSCALLS.c.X; \ - chmod a-x $(libsubdir)/SYSCALLS.c.X; \ - fi -! -rm -f $(libsubdir)/cpp$(exeext) -! $(INSTALL_PROGRAM) cpp$(exeext) $(libsubdir)/cpp$(exeext) +*** 2151,2157 **** + # Install the driver last so that the window when things are + # broken is small. + install-normal: install-common $(INSTALL_HEADERS) $(INSTALL_LIBGCC) \ +! install-man install-info lang.install-normal install-driver - # Install the driver program as $(target)-gcc - # and also as either gcc (if native) or $(tooldir)/bin/gcc. ---- 2114,2121 ---- - $(INSTALL_DATA) SYSCALLS.c.X $(libsubdir)/SYSCALLS.c.X; \ - chmod a-x $(libsubdir)/SYSCALLS.c.X; \ - fi -! -rm -f $(compdir)/cpp$(exeext) -! $(INSTALL_PROGRAM) cpp$(exeext) $(compdir)/cpp$(exeext) + # Do nothing while making gcc with a cross-compiler. The person who + # makes gcc for the target machine has to know how to put a complete +--- 2151,2157 ---- + # Install the driver last so that the window when things are + # broken is small. + install-normal: install-common $(INSTALL_HEADERS) $(INSTALL_LIBGCC) \ +! install-man lang.install-normal install-driver - # Install the driver program as $(target)-gcc - # and also as either gcc (if native) or $(tooldir)/bin/gcc. + # Do nothing while making gcc with a cross-compiler. The person who + # makes gcc for the target machine has to know how to put a complete |