git » libjio » commit 92e296f

Use -O properly.

author Alberto Bertogli
2005-03-10 02:37:02 UTC
committer Alberto Bertogli
2007-07-15 13:47:28 UTC
parent 74b5db416af4f799ef048ad18cde1c16d5f6d7c1

Use -O properly.

I don't know why the Makefile says -O6 instead of -O3 (it's probably a
copy/paste from somewhere else), but it's wrong; fix it.

Signed-off-by: Alberto Bertogli <albertito@gmail.com>

Make.conf +1 -1
Makefile +1 -1

diff --git a/Make.conf b/Make.conf
index 14d7cf0..9e79aa5 100644
--- a/Make.conf
+++ b/Make.conf
@@ -2,7 +2,7 @@
 VERSION="0.21"
 
 CC = gcc
-CFLAGS += -Wall -O6 \
+CFLAGS += -Wall -O3 \
 	-D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 \
 	-D_LFS_LARGEFILE=1 -D_LFS64_LARGEFILE=1 \
 	-D_FILE_OFFSET_BITS=64 `getconf LFS_CFLAGS 2>/dev/null` \
diff --git a/Makefile b/Makefile
index a9cb156..6b76965 100644
--- a/Makefile
+++ b/Makefile
@@ -46,7 +46,7 @@ python_install: python
 
 preload: all
 	install -d bindings/preload/build/
-	$(CC) $(INCLUDES) -Wall -O6 -shared -fPIC \
+	$(CC) $(INCLUDES) -Wall -O3 -shared -fPIC \
 		-D_XOPEN_SOURCE=500 \
 		-ldl -lpthread -L. -ljio -I. \
 		bindings/preload/libjio_preload.c \