ports/lang/gnat/files/patch-ab
Sheldon Hearn cc4e71cb59 Update 3.10p -> 3.11p:
* Build requires a GNAT compiler, for which the maintainer has
	created a package. For now, provide two MASTER_SITEs from which
	it is available so that it'll find its way into the FreeBSD
	distfiles.

      * Uses variables in the PLIST to reduce diff sizes in future.

      * Doesn't install info files, which are virtually duplicates of
	the ones we already have.

      * AOUT support is on its wAy OUT. Do what we can, but don't blow
	any fuses.

      * Hand maintainership over to Daniel Eischen, at the request of
	the previous maintainer.

PR:	10093
Submitted by:	Daniel Eischen <eischen@vigrid.com>
1999-06-24 11:11:28 +00:00

62 lines
2.1 KiB
Text

*** ./config/i386/freebsd.h.orig Fri Sep 4 23:57:29 1998
--- ./config/i386/freebsd.h Fri Sep 4 23:58:54 1998
***************
*** 49,55 ****
#define CPP_SPEC "%{posix:-D_POSIX_SOURCE}"
/* Like the default, except no -lg. */
! #define LIB_SPEC "%{!shared:%{!pg:-lc}%{pg:-lc_p}}"
#undef SIZE_TYPE
#define SIZE_TYPE "unsigned int"
--- 49,55 ----
#define CPP_SPEC "%{posix:-D_POSIX_SOURCE}"
/* Like the default, except no -lg. */
! #define LIB_SPEC "%{!shared:%{!pg:%{!pthread:%{!kthread:-lc}%{kthread:-lpthread -lc}}%{pthread:-lc_r}}%{pg:%{!pthread:%{!kthread:-lc_p}%{kthread:-lpthread_p -lc_p}}%{pthread:-lc_r_p}}}"
#undef SIZE_TYPE
#define SIZE_TYPE "unsigned int"
*** ./config/i386/freebsd-elf.h.orig Fri Dec 5 07:15:34 1997
--- ./config/i386/freebsd-elf.h Fri Feb 12 21:35:52 1999
***************
*** 140,146 ****
#define WCHAR_TYPE_SIZE BITS_PER_WORD
#undef CPP_PREDEFINES
! #define CPP_PREDEFINES "-Dunix -D__ELF__ -D__FreeBSD__=2 -Asystem(FreeBSD)"
#undef CPP_SPEC
#define CPP_SPEC "%(cpp_cpu) %[cpp_cpu] %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{posix:-D_POSIX_SOURCE}"
--- 140,146 ----
#define WCHAR_TYPE_SIZE BITS_PER_WORD
#undef CPP_PREDEFINES
! #define CPP_PREDEFINES "-Di386 -Dunix -D__ELF__ -D__FreeBSD__=3 -Asystem(FreeBSD) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)"
#undef CPP_SPEC
#define CPP_SPEC "%(cpp_cpu) %[cpp_cpu] %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{posix:-D_POSIX_SOURCE}"
***************
*** 152,159 ****
* -lc_p or -ggdb to LDFLAGS at the link time, respectively.
*/
#define LIB_SPEC \
! "%{!shared: %{mieee-fp:-lieee} %{p:-lgmon} %{pg:-lgmon} \
! %{!ggdb:-lc} %{ggdb:-lg}}"
#else
#define LIB_SPEC \
"%{!shared: \
--- 152,164 ----
* -lc_p or -ggdb to LDFLAGS at the link time, respectively.
*/
#define LIB_SPEC \
! "%{!shared: \
! %{!pg: \
! %{!pthread: %{!kthread:-lc} %{kthread:-lpthread -lc}} \
! %{pthread:-lc_r}} \
! %{pg: \
! %{!pthread: %{!kthread:-lc_p} %{kthread:-lpthread_p -lc_p}} \
! %{pthread:-lc_r_p}}}"
#else
#define LIB_SPEC \
"%{!shared: \