freebsd-ports/graphics/glide3/files/patch-make-3dfx_linux_mak
Eric Anholt 69705aa89e Take maintainership of glide3, update to a more recent CVS snapshot,
fix automake troubles, include patches for several bugs.

Reviewed by:	des
Approved by:	portmgr
2002-06-07 06:12:02 +00:00

32 lines
1.2 KiB
Text

diff -ru ../Glide3.orig/swlibs/include/make/3dfx.linux.mak ./swlibs/include/make/3dfx.linux.mak
--- ../Glide3.orig/swlibs/include/make/3dfx.linux.mak Wed Jul 12 14:35:28 2000
+++ ./swlibs/include/make/3dfx.linux.mak Sun Jan 13 16:14:11 2002
@@ -82,15 +82,11 @@
GCPTS := $(GCOPTS) -fPIC -DPIC
endif
-#
-# BIG_OPT Indicates O3(?) or better is being used. It changes the
-# assembly language in grDrawTriangle. Larger optimization removes
-# an extra push in the calling sequence.
-#
-CNODEBUG = -O6 -m486 -fomit-frame-pointer -funroll-loops \
- -fexpensive-optimizations -ffast-math -DBIG_OPT
+# Set CNODEBUG and CDEBUG to nothing to respect CFLAGS
+
+CNODEBUG =
+CDEBUG =
-CDEBUG = -g -O
GLDOPTS = -L$(BUILD_ROOT_SWLIBS)/lib -L/usr/lib
# Profiling
#CDEBUG = -pg -g -O
@@ -115,7 +111,7 @@
LCFLAGS = $(LCINCS) $(LCDEFS) $(LCOPTS)
VCFLAGS = $(VCINCS) $(VCDEFS) $(VCOPTS)
-CFLAGS = $(CDEBUG) $(GCFLAGS) $(LCFLAGS) $(VCFLAGS)
+CFLAGS += $(CDEBUG) $(GCFLAGS) $(LCFLAGS) $(VCFLAGS)
#--------------------------------------------------------------------------
# build up global linker flags (LDFLAGS) and libraries (LDLIBS)