diff --git a/Makefile b/Makefile index 36c3898..02438ac 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,7 @@ RESULT = cpdf ANNOTATE = true PACKS = camlpdf -CFLAGS = -fPIC -g -o2 +CFLAGS = -fPIC -g OCAMLFLAGS = -bin-annot OCAMLNCFLAGS = -g -safe-string OCAMLBCFLAGS = -g -safe-string @@ -41,7 +41,7 @@ all : $(TARGETS) clean :: rm -rf doc foo foo2 out.pdf out2.pdf out3.pdf foo.pdf decomp.pdf *.cmt \ *.cmti *.json test/*.pdf *.ps *.aux *.idx *.log *.out *.toc *.cut \ - *.ttf *.ttx out.png + *.ttf *.ttx out.png cpdf.dSYM DOC_FILES = $(foreach x,$(DOC),$(x).mli) diff --git a/OCamlMakefile b/OCamlMakefile index 3968988..8a683c1 100644 --- a/OCamlMakefile +++ b/OCamlMakefile @@ -614,7 +614,7 @@ endif ifneq ($(strip $(OBJ_LINK)),) ifdef CREATE_LIB - OBJS_LIBS := -cclib -l$(CLIB_BASE) $(CLIBS_OPTS) $(MAYBE_IDL) + OBJS_LIBS := -ccopt "$(CFLAGS)" -cclib -l$(CLIB_BASE) $(CLIBS_OPTS) $(MAYBE_IDL) else OBJS_LIBS := $(OBJ_LINK) $(CLIBS_OPTS) $(MAYBE_IDL) endif