From e5a53f6e360eb4d0406549e8aa61a5ca1b72fc21 Mon Sep 17 00:00:00 2001 From: John Whitington Date: Mon, 5 May 2025 14:01:45 +0100 Subject: [PATCH] more --- Makefile | 4 ++-- OCamlMakefile | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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