1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

Add a forgotten patch to compile the sge_arch.c file with -ansi to let

the evil cpp stringification hack for the architecture name work.
Otherwise "uname -m" generally evaluates to a value that is a macro that
expands to resulting in all architectures appearing to be fbsd-1.
This commit is contained in:
Brooks Davis 2008-02-25 18:08:08 +00:00
parent 62bdf1276d
commit 7d15e5a75b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=207884
4 changed files with 30 additions and 2 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= sge
PORTVERSION= ${SGE_VERSION}
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= sysutils parallel
MASTER_SITES= http://gridengine.sunsource.net/files/documents/7/161/:src \
http://gridengine.sunsource.net/download/SGE61/:bin \

View File

@ -0,0 +1,14 @@
$FreeBSD$
--- libs/uti/Makefile.orig
+++ libs/uti/Makefile
@@ -186,7 +186,7 @@
$(CC) $(CFLAGS) $(COD_NPROCS_CFLAGS) $(SHARED_CFLAGS) -c $(UTILIB_DIR)/sge_nprocs.c
sge_arch.o: $(UTILIB_DIR)/sge_arch.c
- $(CC) $(CFLAGS) $(SHARED_CFLAGS) -c $(UTILIB_DIR)/sge_arch.c
+ $(CC) -ansi $(CFLAGS) $(SHARED_CFLAGS) -c $(UTILIB_DIR)/sge_arch.c
sge_loadmem.o: $(UTILIB_DIR)/sge_loadmem.c
$(CC) $(CFLAGS) $(MEMCFLAG) $(SHARED_CFLAGS) -c $(UTILIB_DIR)/sge_loadmem.c

View File

@ -7,7 +7,7 @@
PORTNAME= sge
PORTVERSION= ${SGE_VERSION}
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= sysutils parallel
MASTER_SITES= http://gridengine.sunsource.net/files/documents/7/161/:src \
http://gridengine.sunsource.net/download/SGE61/:bin \

View File

@ -0,0 +1,14 @@
$FreeBSD$
--- libs/uti/Makefile.orig
+++ libs/uti/Makefile
@@ -186,7 +186,7 @@
$(CC) $(CFLAGS) $(COD_NPROCS_CFLAGS) $(SHARED_CFLAGS) -c $(UTILIB_DIR)/sge_nprocs.c
sge_arch.o: $(UTILIB_DIR)/sge_arch.c
- $(CC) $(CFLAGS) $(SHARED_CFLAGS) -c $(UTILIB_DIR)/sge_arch.c
+ $(CC) -ansi $(CFLAGS) $(SHARED_CFLAGS) -c $(UTILIB_DIR)/sge_arch.c
sge_loadmem.o: $(UTILIB_DIR)/sge_loadmem.c
$(CC) $(CFLAGS) $(MEMCFLAG) $(SHARED_CFLAGS) -c $(UTILIB_DIR)/sge_loadmem.c