Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Feb 1996 23:01:00 +0100 (MET)
From:      Andreas Klemm <andreas@knobel.gun.de>
To:        asami@cs.berkeley.edu (Satoshi Asami)
Cc:        ports@freebsd.org
Subject:   New pgcc patches
Message-ID:  <199602012201.XAA03683@knobel.gun.de>

next in thread | raw e-mail | index | archive | help
Hi Satoshi !

You modified the port very clever ;-) Looks good. Here some changes.

	Andreas ///

--------------------------- snip -----------------------------------------
# New ports collection makefile for:	pgcc - Pentium gcc
# Version required:	gcc-2.7.2 + Pentium patch #7
# Date created:		Tue Jan 30 21:15:31 MET 1996
# Whom:                 Andreas Klemm <andreas@knobel.gun.de>
#
# $Id: Makefile,v 1.1.1.1 1996/01/31 09:12:30 asami Exp $
#

DISTNAME=	gcc-2.7.2
PKGNAME=	pgcc-2.7.2.7
CATEGORIES+=	lang
MASTER_SITES=	ftp://prep.ai.mit.edu/pub/gnu/

# note this is an http site 
PATCH_SITES=    http://www-iss.mach.uni-karlsruhe.de/pcg/
PATCHFILES=	gcc-2.7.2-2.7.2p-pl7.diff.gz
PATCH_DIST_STRIP=	-p1

MAINTAINER=	andreas@knobel.gun.de

WRKSRC=		${WRKDIR}/${DISTNAME}
HAS_CONFIGURE=	yes
CONFIGURE_ARGS=	--prefix=${PREFIX} --with-gnu-as --with-gnu-ld pentium-unknown-freebsd

do-build:
	cd ${WRKSRC} && ${MAKE} bootstrap

do-install:
	cd ${WRKSRC} && ${MAKE} install CC="stage2/xgcc -Bstage2/" CFLAGS="-O2"
.if !defined(NOMANCOMPRESS)
.for file in gcc g++ cccp
	gzip -9nf ${PREFIX}/man/man1/${file}.1
.endfor
.endif

.include <bsd.port.mk>
--------------------------- snip -----------------------------------------


and...


--------------------------- snip -----------------------------------------
*** ./config/i386/freebsd.h.orig	Wed Jan 31 20:16:50 1996
--- ./config/i386/freebsd.h	Wed Jan 31 20:17:43 1996
***************
*** 35,41 ****
  #include "i386/perform.h"
  
  #undef CPP_PREDEFINES
! #define CPP_PREDEFINES "-Dunix -Di386 -D__FreeBSD__ -D__386BSD__ -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)"
  
  /* Like the default, except no -lg.  */
  #define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}"
--- 35,41 ----
  #include "i386/perform.h"
  
  #undef CPP_PREDEFINES
! #define CPP_PREDEFINES "-Dunix -Di386 -Dbsd4_4 -D__FreeBSD__=2 -D__386BSD__ -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)"
  
  /* Like the default, except no -lg.  */
  #define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}"
*** Makefile.in.orig	Thu Feb  1 22:52:54 1996
--- Makefile.in	Thu Feb  1 22:53:43 1996
***************
*** 47,53 ****
  # to the stage2 and stage3 compilations
  # XCFLAGS is used for most compilations but not when using the GCC just built.
  XCFLAGS =
! CFLAGS = -O2
  BOOT_CFLAGS = -O $(CFLAGS)
  # These exists to be overridden by the x-* and t-* files, respectively.
  X_CFLAGS =
--- 47,53 ----
  # to the stage2 and stage3 compilations
  # XCFLAGS is used for most compilations but not when using the GCC just built.
  XCFLAGS =
! CFLAGS = -pipe -O2
  BOOT_CFLAGS = -O $(CFLAGS)
  # These exists to be overridden by the x-* and t-* files, respectively.
  X_CFLAGS =
***************
*** 2367,2375 ****
  # To prevent `make install' from compiling alloca.o and then relinking cc1
  # because alloca.o is newer, we permit these recursive makes to compile
  # alloca.o.  Then cc1 is newer, so it won't have to be relinked.
! 	$(MAKE) CC="stage1/xgcc -Bstage1/" CFLAGS="$(BOOT_CFLAGS)" LDFLAGS="$(BOOT_LDFLAGS)" libdir=$(libdir) STAGE_PREFIX=stage1/ LANGUAGES="$(LANGUAGES)"
  	$(MAKE) stage2
! 	$(MAKE) CC="stage2/xgcc -Bstage2/" CFLAGS="$(BOOT_CFLAGS)" LDFLAGS="$(BOOT_LDFLAGS)" libdir=$(libdir) STAGE_PREFIX=stage2/ LANGUAGES="$(LANGUAGES)"
  
  bootstrap2: force
  	$(MAKE) CC="stage1/xgcc -Bstage1/" CFLAGS="$(BOOT_CFLAGS)" LDFLAGS="$(BOOT_LDFLAGS)" libdir=$(libdir) STAGE_PREFIX=stage1/ LANGUAGES="$(LANGUAGES)"
--- 2367,2375 ----
  # To prevent `make install' from compiling alloca.o and then relinking cc1
  # because alloca.o is newer, we permit these recursive makes to compile
  # alloca.o.  Then cc1 is newer, so it won't have to be relinked.
! 	$(MAKE) CC="stage1/xgcc -Bstage1/" CFLAGS="-mpentium $(BOOT_CFLAGS)" LDFLAGS="$(BOOT_LDFLAGS)" libdir=$(libdir) STAGE_PREFIX=stage1/ LANGUAGES="$(LANGUAGES)"
  	$(MAKE) stage2
! 	$(MAKE) CC="stage2/xgcc -Bstage2/" CFLAGS="-mpentium $(BOOT_CFLAGS)" LDFLAGS="$(BOOT_LDFLAGS)" libdir=$(libdir) STAGE_PREFIX=stage2/ LANGUAGES="$(LANGUAGES)"
  
  bootstrap2: force
  	$(MAKE) CC="stage1/xgcc -Bstage1/" CFLAGS="$(BOOT_CFLAGS)" LDFLAGS="$(BOOT_LDFLAGS)" libdir=$(libdir) STAGE_PREFIX=stage1/ LANGUAGES="$(LANGUAGES)"
--------------------------- snip -----------------------------------------
-- 
andreas@knobel.gun.de       /\/\___  Wiechers & Partner Datentechnik GmbH
   Andreas Klemm        ___/\/\/       - Support Unix - aklemm@wup.de -
                             \/
       ftp://sunsite.unc.edu/pub/Linux/system/Printing/aps-491.tgz
apsfilter - magic print filter 4lpd  >>> knobel is powered by FreeBSD <<<



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199602012201.XAA03683>