Fix libGL build on FreeBSD by respecting ASM_FLAGS.
authorEric Anholt <anholt@FreeBSD.org>
Tue, 13 Sep 2005 05:19:02 +0000 (05:19 +0000)
committerEric Anholt <anholt@FreeBSD.org>
Tue, 13 Sep 2005 05:19:02 +0000 (05:19 +0000)
Submitted by: Diego Pettenò <flameeyes@gentoo.org>

configs/freebsd
configs/freebsd-dri

index 910352abd3e0e7a840c1404720e7f2b2c8915aa9..95e51f25158845fc757ed39973cacd776e36222d 100644 (file)
@@ -9,7 +9,8 @@ CC = gcc
 CXX = g++
 MAKE = gmake
 
-CFLAGS = -O2 -fPIC -pedantic -I/usr/X11R6/include -DUSE_XSHM -DHZ=100
+CFLAGS = -O2 -fPIC -pedantic -I/usr/X11R6/include -DUSE_XSHM -DHZ=100 \
+       $(ASM_FLAGS)
 CXXFLAGS = -O2 -fPIC -pedantic
 GLUT_CFLAGS = -fexceptions
 
index dd6e6143e18ecebe33f5c844699ccffd8145c506..2096fd070c68e36aa8f3130fbb57d903ae5ef708 100644 (file)
@@ -16,7 +16,7 @@ X11_INCLUDES = -I/usr/X11R6/include
 DEFINES = -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER \
        -DGLX_DIRECT_RENDERING -DHAVE_ALIAS
 CFLAGS = $(DEFINES) -Wmissing-prototypes -g -std=c99  -Wundef -fPIC \
-       -ffast-math $(X11_INCLUDES)
+       -ffast-math $(ASM_FLAGS) $(X11_INCLUDES)
 CXXFLAGS = $(DEFINES) -Wall -g -ansi -pedantic -fPIC
 
 ASM_SOURCES =