Menu

#45 Makefile requires gcc for dependencies

closed-fixed
None
5
2001-04-05
2001-04-05
No

After running configure on Solaris 2.8 and using the Sun cc compiler, the lib/ directory Makefile has
this gcc-only dependency generator:
$(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
...

I wish I knew the alternate method, of just using make depend. Or can I just ditch these lines?

The truth is, though, do the vast majority of people care about dependency generation?
I want to build expat because I will be using the Perl module HTML::Parser. I will probably never
fiddle with the source to expat; if there are fixes, I will download an entirely new set of sources,
and compile it from scratch. I don't care about compiling everything all over again, because that's
exactly what I'll always be doing.

Anyway, if no dependency information is generated at all, can't I still build a binary?

Discussion

  • Fred L. Drake, Jr.

    • assigned_to: nobody --> gstein
    • status: open --> closed-fixed
     
  • Fred L. Drake, Jr.

    Logged In: YES
    user_id=3066

    Greg already fixed this in the CVS version. You can make the compilation lines just this:

    .c.o:
    $(COMPILE) -c $<

    .c.lo:
    $(LTCOMPILE) -c $<

     

Log in to post a comment.

MongoDB Logo MongoDB