remove hardcoded "-O" from compiler calls

naddy@ OK
This commit is contained in:
sturm 2002-12-14 20:03:21 +00:00
parent a00805f341
commit c9ebe13829
14 changed files with 177 additions and 0 deletions

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-asmrun_Makefile,v 1.1 2002/12/14 20:03:21 sturm Exp $
--- asmrun/Makefile.orig Fri Dec 13 23:03:13 2002
+++ asmrun/Makefile Fri Dec 13 23:03:26 2002
@@ -17,7 +17,7 @@ include ../config/Makefile
CC=$(NATIVECC)
FLAGS=-I../byterun -DNATIVE_CODE -DTARGET_$(ARCH) -DSYS_$(SYSTEM)
-CFLAGS=$(FLAGS) -O $(NATIVECCCOMPOPTS)
+CFLAGS=$(FLAGS) $(NATIVECCCOMPOPTS)
DFLAGS=$(FLAGS) -g -DDEBUG $(NATIVECCCOMPOPTS)
PFLAGS=$(FLAGS) -pg -O -DPROFILING $(NATIVECCPROFOPTS)

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-byterun_Makefile,v 1.1 2002/12/14 20:03:21 sturm Exp $
--- byterun/Makefile.orig Fri Dec 13 23:03:55 2002
+++ byterun/Makefile Fri Dec 13 23:04:05 2002
@@ -16,7 +16,7 @@
include ../config/Makefile
CC=$(BYTECC)
-CFLAGS=-O $(BYTECCCOMPOPTS)
+CFLAGS=$(BYTECCCOMPOPTS)
DFLAGS=-g -DDEBUG $(BYTECCCOMPOPTS)
OBJS=interp.o misc.o stacks.o fix_code.o startup.o main.o \

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-otherlibs_bigarray_Makefile,v 1.1 2002/12/14 20:03:21 sturm Exp $
--- otherlibs/bigarray/Makefile.orig Fri Dec 13 23:06:23 2002
+++ otherlibs/bigarray/Makefile Fri Dec 13 23:06:35 2002
@@ -16,7 +16,7 @@
include ../../config/Makefile
CC=$(BYTECC)
-CFLAGS=-I../../byterun -g -O $(BYTECCCOMPOPTS) $(SHAREDCCCOMPOPTS)
+CFLAGS=-I../../byterun -g $(BYTECCCOMPOPTS) $(SHAREDCCCOMPOPTS)
CAMLC=../../ocamlcomp.sh -I ../unix
CAMLOPT=../../ocamlcompopt.sh -I ../unix
MKLIB=../../boot/ocamlrun ../../tools/ocamlmklib

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-otherlibs_db_Makefile,v 1.1 2002/12/14 20:03:21 sturm Exp $
--- otherlibs/db/Makefile.orig Fri Dec 13 23:06:41 2002
+++ otherlibs/db/Makefile Fri Dec 13 23:07:02 2002
@@ -24,7 +24,7 @@ CAMLOPT=../../ocamlcompopt.sh
MKLIB=../../boot/ocamlrun ../../tools/ocamlmklib
COMPFLAGS=-warn-error A
-CFLAGS=-I../../byterun -O $(BYTECCCOMPOPTS) $(SHAREDCCCOMPOPTS)
+CFLAGS=-I../../byterun $(BYTECCCOMPOPTS) $(SHAREDCCCOMPOPTS)
COBJS=dbstubs.o
all: libmldb.a db.cmi db.cma

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-otherlibs_dbm_Makefile,v 1.1 2002/12/14 20:03:21 sturm Exp $
--- otherlibs/dbm/Makefile.orig Fri Dec 13 23:07:13 2002
+++ otherlibs/dbm/Makefile Fri Dec 13 23:07:28 2002
@@ -24,7 +24,7 @@ CAMLOPT=../../ocamlcompopt.sh
MKLIB=../../boot/ocamlrun ../../tools/ocamlmklib
COMPFLAGS=-warn-error A
-CFLAGS=$(DBM_INCLUDES) -I../../byterun -O $(BYTECCCOMPOPTS) $(SHAREDCCCOMPOPTS)
+CFLAGS=$(DBM_INCLUDES) -I../../byterun $(BYTECCCOMPOPTS) $(SHAREDCCCOMPOPTS)
COBJS=cldbm.o
all: libmldbm.a dbm.cmi dbm.cma

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-otherlibs_graph_Makefile,v 1.1 2002/12/14 20:03:21 sturm Exp $
--- otherlibs/graph/Makefile.orig Fri Dec 13 23:07:37 2002
+++ otherlibs/graph/Makefile Fri Dec 13 23:07:46 2002
@@ -18,7 +18,7 @@
include ../../config/Makefile
CC=$(BYTECC)
-CFLAGS=-I../../byterun $(X11_INCLUDES) -O $(BYTECCCOMPOPTS) $(SHAREDCCCOMPOPTS)
+CFLAGS=-I../../byterun $(X11_INCLUDES) $(BYTECCCOMPOPTS) $(SHAREDCCCOMPOPTS)
CAMLC=../../ocamlcomp.sh
CAMLOPT=../../ocamlcompopt.sh
MKLIB=../../boot/ocamlrun ../../tools/ocamlmklib

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-otherlibs_num_Makefile,v 1.1 2002/12/14 20:03:21 sturm Exp $
--- otherlibs/num/Makefile.orig Fri Dec 13 23:08:13 2002
+++ otherlibs/num/Makefile Fri Dec 13 23:08:20 2002
@@ -19,7 +19,7 @@ include ../../config/Makefile
# Compilation options
CC=$(BYTECC)
-CFLAGS=-O -I./bignum/h -I../../byterun $(BYTECCCOMPOPTS) $(SHAREDCCCOMPOPTS)
+CFLAGS=-I./bignum/h -I../../byterun $(BYTECCCOMPOPTS) $(SHAREDCCCOMPOPTS)
CAMLC=../../ocamlcomp.sh -w s
CAMLOPT=../../ocamlcompopt.sh -w s
MKLIB=../../boot/ocamlrun ../../tools/ocamlmklib

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-otherlibs_num_bignum_Makefile,v 1.1 2002/12/14 20:03:22 sturm Exp $
--- otherlibs/num/bignum/Makefile.orig Fri Dec 13 23:07:56 2002
+++ otherlibs/num/bignum/Makefile Fri Dec 13 23:08:05 2002
@@ -11,7 +11,7 @@ RANLIBTEST=test -f /usr/bin/ranlib -o -f
LIB = libbignum.a
OBJECT = o/KerN.o o/bnInit.o o/bnMult.o o/bnDivide.o o/bnCmp.o o/bzf.o o/bz.o
KERNH = h/BigNum.h
-CFLAGS = -c -I./h -O -DCAML_LIGHT
+CFLAGS = -c -I./h -DCAML_LIGHT
LDFLAGS =
# extra entries:

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-otherlibs_str_Makefile,v 1.1 2002/12/14 20:03:22 sturm Exp $
--- otherlibs/str/Makefile.orig Fri Dec 13 23:08:30 2002
+++ otherlibs/str/Makefile Fri Dec 13 23:08:37 2002
@@ -19,7 +19,7 @@ include ../../config/Makefile
# Compilation options
CC=$(BYTECC)
-CFLAGS=-O -I$(REGEXLIB) -I../../byterun $(BYTECCCOMPOPTS) $(SHAREDCCCOMPOPTS)
+CFLAGS=-I$(REGEXLIB) -I../../byterun $(BYTECCCOMPOPTS) $(SHAREDCCCOMPOPTS)
CAMLC=../../ocamlcomp.sh
CAMLOPT=../../ocamlcompopt.sh
COMPFLAGS=-warn-error A

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-otherlibs_str_regex-0_12_Makefile_in,v 1.1 2002/12/14 20:03:22 sturm Exp $
--- otherlibs/str/regex-0.12/Makefile.in.orig Fri Dec 13 23:31:14 2002
+++ otherlibs/str/regex-0.12/Makefile.in Fri Dec 13 23:32:53 2002
@@ -29,7 +29,7 @@ version = 0.12
CPPFLAGS =
# Likewise, you can override CFLAGS to optimize, use -Wall, etc.
-CFLAGS = -O
+# CFLAGS = -O
# Ditto for LDFLAGS and LOADLIBES.
LDFLAGS =

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-otherlibs_systhreads_Makefile,v 1.1 2002/12/14 20:03:22 sturm Exp $
--- otherlibs/systhreads/Makefile.orig Fri Dec 13 23:08:50 2002
+++ otherlibs/systhreads/Makefile Fri Dec 13 23:09:29 2002
@@ -35,7 +35,7 @@ libthreads.a: $(BYTECODE_C_OBJS)
$(MKLIB) -o threads $(BYTECODE_C_OBJS)
posix_b.o: posix.c
- $(BYTECC) -O -I../../byterun $(BYTECCCOMPOPTS) $(SHAREDCCCOMPOPTS) \
+ $(BYTECC) -I../../byterun $(BYTECCCOMPOPTS) $(SHAREDCCCOMPOPTS) \
-c posix.c
mv posix.o posix_b.o
@@ -45,7 +45,7 @@ libthreadsnat.a: $(NATIVECODE_C_OBJS)
$(AR) rc libthreadsnat.a $(NATIVECODE_C_OBJS)
posix_n.o: posix.c
- $(NATIVECC) -O -I../../asmrun -I../../byterun $(NATIVECCCOMPOPTS) $(SHAREDCCCOMPOPTS) -DNATIVE_CODE -DTARGET_$(ARCH) -DSYS_$(SYSTEM) -c posix.c
+ $(NATIVECC) -I../../asmrun -I../../byterun $(NATIVECCCOMPOPTS) $(SHAREDCCCOMPOPTS) -DNATIVE_CODE -DTARGET_$(ARCH) -DSYS_$(SYSTEM) -c posix.c
mv posix.o posix_n.o
threads.cma: $(THREAD_OBJS)

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-otherlibs_threads_Makefile,v 1.1 2002/12/14 20:03:22 sturm Exp $
--- otherlibs/threads/Makefile.orig Fri Dec 13 23:09:39 2002
+++ otherlibs/threads/Makefile Fri Dec 13 23:09:47 2002
@@ -16,7 +16,7 @@
include ../../config/Makefile
CC=$(BYTECC)
-CFLAGS=-I../../byterun -O $(BYTECCCOMPOPTS) $(SHAREDCCCOMPOPTS) -g
+CFLAGS=-I../../byterun $(BYTECCCOMPOPTS) $(SHAREDCCCOMPOPTS) -g
CAMLC=../../ocamlcomp.sh -I ../unix
MKLIB=../../boot/ocamlrun ../../tools/ocamlmklib
COMPFLAGS=-warn-error A

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-otherlibs_unix_Makefile,v 1.1 2002/12/14 20:03:22 sturm Exp $
--- otherlibs/unix/Makefile.orig Fri Dec 13 23:09:56 2002
+++ otherlibs/unix/Makefile Fri Dec 13 23:10:12 2002
@@ -19,7 +19,7 @@ include ../../config/Makefile
# Compilation options
CC=$(BYTECC)
-CFLAGS=-I../../byterun -O $(BYTECCCOMPOPTS) $(SHAREDCCCOMPOPTS)
+CFLAGS=-I../../byterun $(BYTECCCOMPOPTS) $(SHAREDCCCOMPOPTS)
CAMLC=../../ocamlcomp.sh
CAMLOPT=../../ocamlcompopt.sh
MKLIB=../../boot/ocamlrun ../../tools/ocamlmklib

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-yacc_Makefile,v 1.1 2002/12/14 20:03:22 sturm Exp $
--- yacc/Makefile.orig Fri Dec 13 23:05:42 2002
+++ yacc/Makefile Fri Dec 13 23:05:51 2002
@@ -17,7 +17,7 @@
include ../config/Makefile
CC=$(BYTECC)
-CFLAGS=-O -DNDEBUG $(BYTECCCOMPOPTS)
+CFLAGS=-DNDEBUG $(BYTECCCOMPOPTS)
OBJS= closure.o error.o lalr.o lr0.o main.o mkpar.o output.o reader.o \
skeleton.o symtab.o verbose.o warshall.o