summaryrefslogtreecommitdiff
path: root/dist/Mesa/configs/freebsd
diff options
context:
space:
mode:
Diffstat (limited to 'dist/Mesa/configs/freebsd')
-rw-r--r--dist/Mesa/configs/freebsd9
1 files changed, 5 insertions, 4 deletions
diff --git a/dist/Mesa/configs/freebsd b/dist/Mesa/configs/freebsd
index 38806ab94..3d35d91ed 100644
--- a/dist/Mesa/configs/freebsd
+++ b/dist/Mesa/configs/freebsd
@@ -9,14 +9,11 @@ CC = cc
CXX = c++
MAKE = gmake
-# cp -d not supported on FreeBSD (see bug 4435)
-COPY_LIBS = cp -f
-
OPT_FLAGS = -O2
PIC_FLAGS = -fPIC
DEFINES = -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_BSD_SOURCE -DUSE_XSHM \
- -DHZ=100 -DHAVE_POSIX_MEMALIGN
+ -DHZ=100
X11_INCLUDES = -I/usr/X11R6/include
@@ -26,5 +23,9 @@ CXXFLAGS += $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(DEFINES) $(X11_INCLUDES)
GLUT_CFLAGS = -fexceptions
+# Work around aliasing bugs - developers should comment this out
+CFLAGS += -fno-strict-aliasing
+CXXFLAGS += -fno-strict-aliasing
+
EXTRA_LIB_PATH = -L/usr/X11R6/lib
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) $(EXTRA_LIB_PATH) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lXext -lXmu -lXi -lX11 -lm