diff options
author | Eric Anholt <anholt@FreeBSD.org> | 2004-09-25 07:11:12 +0000 |
---|---|---|
committer | Eric Anholt <anholt@FreeBSD.org> | 2004-09-25 07:11:12 +0000 |
commit | 0a21a4aaf9c210dd03d489ce0764c45bf8e38c9d (patch) | |
tree | 41a648aec84005c0e6eb3d2e47865db6e378a73c /configs/linux-dri | |
parent | 5562fe653cf88454bbf2c50f77a8b56b0dafe01b (diff) |
Refactor the linux-dri config files so that linux-dri-x86 inherits from
linux-dri. Turn on -O by default (-O2 provides a slight improvement in
performance, at a large cost to debuggability). Turn off -fPIC on x86 by
default. Turn on -Wall, to catch more stupid mistakes. This could be both done
cleaner, and done for more config files, but it works for me for now.
Diffstat (limited to 'configs/linux-dri')
-rw-r--r-- | configs/linux-dri | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/configs/linux-dri b/configs/linux-dri index ac031d594e..9f225ad8f2 100644 --- a/configs/linux-dri +++ b/configs/linux-dri @@ -9,11 +9,18 @@ CONFIG_NAME = linux-dri CC = gcc CXX = g++ -CFLAGS = -DDRI_NEW_INTERFACE_ONLY -Wmissing-prototypes -g -std=c99 -Wundef -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DPTHREADS -D_GNU_SOURCE -I/usr/X11R6/include -I/usr/X11R6/include/X11/extensions - -CXXFLAGS = -DDRI_NEW_INTERFACE_ONLY -Wall -g -ansi -pedantic -fPIC -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE - - +WARN_FLAGS = -Wall +OPT_FLAGS = -O +SOURCE_FLAGS = -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE \ + -D_BSD_SOURCE -D_GNU_SOURCE +PIC_FLAGS = -fPIC + +CFLAGS = -DDRI_NEW_INTERFACE_ONLY $(WARN_FLAGS) -g $(OPT_FLAGS) $(ASM_FLAGS) \ + -std=c99 $(PIC_FLAGS) -ffast-math $(SOURCE_FLAGS) -DPTHREADS \ + -I/usr/X11R6/include -I/usr/X11R6/include/X11/extensions + +CXXFLAGS = -DDRI_NEW_INTERFACE_ONLY $(WARN_FLAGS) -g $(OPT_FLAGS) -fPIC \ + $(SOURCE_FLAGS) ASM_SOURCES = |