From 17c443a3fd9f869c68daf20271fc22503b44e915 Mon Sep 17 00:00:00 2001 From: Coyote Date: Thu, 30 Nov 2006 08:01:43 +0000 Subject: [PATCH] Changes to build defines for Solaris on i86pc. Minor fix to q_platform.h for Solaris. --- Makefile | 21 +++++++++++---------- code/qcommon/q_platform.h | 2 +- code/unix/setup/Solaris_pkg.sh | 2 +- 3 files changed, 13 insertions(+), 12 deletions(-) diff --git a/Makefile b/Makefile index bf4f65ab..e723195e 100644 --- a/Makefile +++ b/Makefile @@ -665,15 +665,22 @@ ifeq ($(PLATFORM),sunos) -falign-jumps=2 -falign-functions=2 -fstrength-reduce \ -mtune=ultrasparc -mv8plus -mno-faster-structs \ -funroll-loops - BASE_CFLAGS += -DNO_VM_COMPILED else ifeq ($(ARCH),i386) - OPTIMIZE = -O3 -march=i586 -ffast-math \ - -falign-loops=2 -falign-jumps=2 -falign-functions=2 \ - -funroll-loops -fstrength-reduce + OPTIMIZE = -O3 -march=i586 -fomit-frame-pointer -ffast-math \ + -funroll-loops -falign-loops=2 -falign-jumps=2 \ + -falign-functions=2 -fstrength-reduce + HAVE_VM_COMPILED=true + BASE_CFLAGS += -m32 + LDFLAGS+=-m32 + GL_CFLAGS+= -I/usr/X11/include/NVIDIA endif endif + ifneq ($(HAVE_VM_COMPILED),true) + BASE_CFLAGS += -DNO_VM_COMPILED + endif + DEBUG_CFLAGS = $(BASE_CFLAGS) -ggdb -O0 RELEASE_CFLAGS=$(BASE_CFLAGS) -DNDEBUG $(OPTIMIZE) @@ -693,12 +700,6 @@ ifeq ($(PLATFORM),sunos) CLIENT_LDFLAGS=-L/usr/openwin/$(LIB) -L/usr/X11/lib -lGLU -lX11 -lXext endif - ifeq ($(ARCH),i386) - # Solarix x86 make ... - BASE_CFLAGS += -m32 - LDFLAGS+=-m32 - endif - else # ifeq sunos ############################################################################# diff --git a/code/qcommon/q_platform.h b/code/qcommon/q_platform.h index 16817c88..2d4306ad 100644 --- a/code/qcommon/q_platform.h +++ b/code/qcommon/q_platform.h @@ -222,7 +222,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #ifdef __sun -#include +#include #include #define OS_STRING "solaris" diff --git a/code/unix/setup/Solaris_pkg.sh b/code/unix/setup/Solaris_pkg.sh index d4e600cb..de004590 100644 --- a/code/unix/setup/Solaris_pkg.sh +++ b/code/unix/setup/Solaris_pkg.sh @@ -5,7 +5,7 @@ MOUNT_DIR="../../.." # Solaris stuff PLATFORM=`uname|sed -e s/_.*//|tr '[:upper:]' '[:lower:]'` -if [ "X`uname -m`" = "Xi386" ]; then +if [ "X`uname -m`" = "Xi86pc" ]; then ARCH=i386 else ARCH=sparc