From owner-freebsd-ports Sat Sep 12 13:20:06 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA07061 for freebsd-ports-outgoing; Sat, 12 Sep 1998 13:20:06 -0700 (PDT) (envelope-from owner-freebsd-ports@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA07053 for ; Sat, 12 Sep 1998 13:20:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id NAA15385; Sat, 12 Sep 1998 13:20:01 -0700 (PDT) Received: from tim.xenologics.com (tim.xenologics.com [194.77.5.24]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA06654 for ; Sat, 12 Sep 1998 13:12:21 -0700 (PDT) (envelope-from seggers@semyam.dinoco.de) Received: (from uucp@localhost) by tim.xenologics.com (8.8.5/8.8.8) with UUCP id WAA26406 for FreeBSD-gnats-submit@freebsd.org; Sat, 12 Sep 1998 22:09:53 +0200 (MET DST) Received: (from seggers@localhost) by semyam.dinoco.de (8.9.1/8.8.8) id WAA15124; Sat, 12 Sep 1998 22:07:30 +0200 (CEST) (envelope-from seggers) Message-Id: <199809122007.WAA15124@semyam.dinoco.de> Date: Sat, 12 Sep 1998 22:07:30 +0200 (CEST) From: Stefan Eggers Reply-To: seggers@semyam.dinoco.de To: FreeBSD-gnats-submit@FreeBSD.ORG Cc: seggers@semyam.dinoco.de X-Send-Pr-Version: 3.2 Subject: ports/7909: ELF for port games/crafty Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 7909 >Category: ports >Synopsis: ELF for port games/crafty >Confidential: no >Severity: non-critical >Priority: high >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Sep 12 13:20:00 PDT 1998 >Last-Modified: >Originator: Stefan Eggers >Organization: none >Release: FreeBSD 3.0-CURRENT i386 >Environment: A -current system cvsup'ed on September 8th. The files in /usr/share/mk are from September 11th. This is the result of doing the upgrade to ELF but forgetting that I need the newer make include files. :-( I don't expect this to make a difference for this. >Description: Crafty doesn't know about ELF, yet. This changed patch file adds this capability w/o losing a.out compatibility. >How-To-Repeat: Try it with the new patch and test it on an ELF system. It will produce an ELF version. On the same system doing a make with OBJFORMAT=aout in the environment produces the expected a.out version. >Fix: This file shall replace patches/patch-aa: --- Makefile.ORIG Mon Jun 29 21:19:02 1998 +++ Makefile Sat Sep 12 21:49:58 1998 @@ -69,13 +69,13 @@ # -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B # asm = X86.o -# FreeBSD (gcc 2.6.3) -#target = FreeBSD +# FreeBSD (gcc 2.7.2.1) +target = FreeBSD #CC = gcc #CFLAGS = -fomit-frame-pointer -m486 -O3 -Wall #LDFLAGS = -#opt = -DCOMPACT_ATTACKS -DUSE_SPLIT_SHIFTS -DUSE_ATTACK_FUNCTIONS \ -# -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DFAST +opt = -DCOMPACT_ATTACKS -DUSE_SPLIT_SHIFTS -DUSE_ATTACK_FUNCTIONS \ + -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DFAST # FreeBSD (pgcc) #target = FreeBSD @@ -95,18 +95,21 @@ # LINUX # Note: You have to uncomment exactly ONE of the `asm' lines below. -target = LINUX -CC = gcc -CFLAGS = -pipe -D_REENTRANT -mpentiumpro -O -Wall -LDFLAGS = -lpthread -opt = -DCOMPACT_ATTACKS -DUSE_SPLIT_SHIFTS -DUSE_ATTACK_FUNCTIONS \ - -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DFAST -DSMP -DCPUS=4 +#target = LINUX +#CC = gcc +#CFLAGS = -pipe -D_REENTRANT -mpentiumpro -O -Wall +#LDFLAGS = -lpthread +#opt = -DCOMPACT_ATTACKS -DUSE_SPLIT_SHIFTS -DUSE_ATTACK_FUNCTIONS \ +# -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DFAST -DSMP -DCPUS=4 # Uncomment the FIRST `asm' line for a.out systems. # Uncomment the SECOND `asm' line for ELF systems. # -#asm = X86-aout.o +.if ${PORTOBJFORMAT} == "aout" +asm = X86-aout.o +.else asm = X86-elf.o +.endif # NEXT #target = NEXT >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message