Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Sep 1998 22:07:30 +0200 (CEST)
From:      Stefan Eggers <seggers@semyam.dinoco.de>
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Cc:        seggers@semyam.dinoco.de
Subject:   ports/7909: ELF for port games/crafty
Message-ID:  <199809122007.WAA15124@semyam.dinoco.de>

next in thread | raw e-mail | index | archive | help

>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



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