Makefile.rules in RHEL5 rpm

myrosiamyrosia Myroslava DzikovskaOrganization: University of EdinburghProject: tutorial dialogue systemMember ✭✭
Hello,

we have been using ICE compiled from source on several of our machines, and found it convenient to include Ice-3.3.1/cpp/config/Make.rules into our makefiles, to get all the switches correctly.

Now I am trying to use the same software on a RHEL 5 machine which has rpms installed, and it does not seem to have a config directory anywhere. Is it not part of the RPM distribution?

Comments

  • benoitbenoit Rennes, FranceBenoit FoucherOrganization: ZeroC, Inc.Project: IceAdministrators, ZeroC Staff ZeroC Staff
    Hi,

    No, it's not part of the RPM distribution as this isn't something which is part of the Ice installation. That being said, you can easily get them from the Ice-3.3.1-demos.tar.gz archive.

    Cheers,
    Benoit.
  • myrosiamyrosia Myroslava DzikovskaOrganization: University of EdinburghProject: tutorial dialogue systemMember ✭✭
    Right, thanks. Actually, here's a follow-up question. The reason we found including config/Make.rules convenient was mostly because demo examples used it, and it sets up a lot of switches (like -D_REENTRANT) etc, plus linkage switches such as -lpthread. It is not obvious to me which of those are strictly necessary and which are optional. Is there documentation anywhere which specifies what may be necessary, other than the obvious include and library directories for ice?
  • benoitbenoit Rennes, FranceBenoit FoucherOrganization: ZeroC, Inc.Project: IceAdministrators, ZeroC Staff ZeroC Staff
    Hi,

    We don't specifically document this but you can easily check the compiler/linker flags used to compile the Ice demos to figure out which compiler flags to use to build your programs.

    In theory, these should be the minimal compiler/linker flags you need for building Ice applications. That being said, it's possible that few flags aren't needed anymore with recent compiler versions (-ftemplate-depth-128 in particular, you might want to try compiling your applications without and see if it works).

    We'll try to improve a bit the documentation in this area for the next release.

    Cheers,
    Benoit.
Sign In or Register to comment.