On Sat, Jul 30, 2005 at 02:36:29PM -0700, Steve Langasek wrote:
> 
> That doesn't make any sense; CPPFLAGS refers to flags for the C
> preprocessor, and one can clearly see three lines above that -fPIC is
> already being set in the PIC_CFLAGS variable where it belongs.  The fix
> belongs elsewhere, wherever PIC_CFLAGS is failing to be included.

You're right, but I can't seem find the proper place to fix it.
What is being executed is it this:
.c.$(EXT_OBJ):
                        $(OCAMLC) -c -cc "$(CC)" -ccopt "$(CFLAGS) \
                                $(CPPFLAGS) $(CPPFLAGS_WIN32) \
                                $(CFLAGS_WIN32) $(CINCFLAGS) $(CFLAG_O)$@ " $<

And adding $(PIC_CFLAGS) fixes it, but really isn't what you
want.

An other part of the makefile says:
  ifdef CREATE_LIB
    CFLAGS := $(PIC_CFLAGS) $(CFLAGS)
    CPPFLAGS := $(PIC_CPPFLAGS) $(CPPFLAGS)

Afaics, everywhere CPPFLAGS contains PIC_CPPFLAGS, CFLAGS
contains PIC_CFLAGS, so this isn't really making sense to me.


Kurt



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to