Don't hard-code -O9 and various other funky -f optimizations

This commit is contained in:
Kris Kennaway 2001-04-30 08:18:54 +00:00
parent 83a640b2c4
commit da910b65c2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=42069

View File

@ -1,8 +1,5 @@
$FreeBSD$
--- Makefile.orig Sun Feb 27 15:45:57 2000
+++ Makefile Mon Jan 22 23:14:32 2001
--- Makefile.orig Sun Feb 27 05:45:57 2000
+++ Makefile Mon Apr 30 01:16:01 2001
@@ -5,14 +5,14 @@
# User settings
#===============
@ -30,18 +27,21 @@ $FreeBSD$
# makemake variables
@@ -35,12 +35,12 @@
@@ -34,13 +34,13 @@
# C
CC := gcc
-CC := gcc
-CFLAGS = ${DEPENDFLAGS}
+CC ?= gcc
+CFLAGS += ${DEPENDFLAGS}
# C++
CXX := g++
-CXX := g++
-CXXFLAGS = ${DEPENDFLAGS} -O9 -funroll-loops -fomit-frame-pointer -ffast-math -Wcast-align
+CXXFLAGS += ${DEPENDFLAGS} -O9 -funroll-loops -fomit-frame-pointer -ffast-math -Wcast-align
+CXX ?= g++
+CXXFLAGS += ${DEPENDFLAGS} -Wcast-align
%.o : %.cpp
${CXX} ${CPPFLAGS} -c $< ${CXXFLAGS} -o $@