Menu

#3 Makefile problem

open
5
2003-07-07
2002-10-09
No

Compiling xclass-0.7.4 on a Sparc/Solaris 2.8 box
comes up with a makefile problem in lib/libxclass. It
complains about the line that reads "shared: CXXFLAGS
+= -fPIC", stating that macro assignment is not
allowable on a dependency line. To correct this simply
change the above line to read "shared := CXXFLAGS
+= -fPIC".
Other than that everything works great!

Discussion

  • Luis Hector Peraza Gonzalez

    Logged In: YES
    user_id=331772

    What I wanted with the 'shared: CXX...' was to have a
    target-specific variable assignment. The value -fPIC should
    be added to the CXXFLAGS only when doing a 'make shared'.
    Note that the ':=' change will NOT produce the desired
    result, it will just create a variable named shared, and
    CXXFLAGS will remain unchanged. GNU gmake understands the
    original Makefile without problems and produces the correct
    variable expansions, I would recommend using it under
    Solaris too to compile xclass.

     
  • Luis Hector Peraza Gonzalez

    • assigned_to: nobody --> hperaza
     
  • Luis Hector Peraza Gonzalez

    • labels: --> xclass library
     

Log in to post a comment.