Changes between Version 15 and Version 16 of pm-source-make


Ignore:
Timestamp:
Jun 10, 2011 1:45:50 PM (8 years ago)
Author:
stefan
Comment:

no need for extra rpath flag

Legend:

Unmodified
Added
Removed
Modified
  • pm-source-make

    v15 v16  
    148148# Here we add additional libraries
    149149LIBS += $(ADDLIBS) `cat $(COINUTILSOBJDIR)/coinutils_addlibs.txt`
    150 
    151 # Finally, the -rpath flag is used by libtool to make sure that the shared
    152 # library is found (in the lib install directory) when we are using dynamic
    153 # libraries.
    154 clp_LDFLAGS = -rpath $(libdir)
    155150}}}
    156151
     
    159154 * The '''_DEPENDENCIES''' variable is used by make to generate dependency rules for the binary, so that it is recompiled if one of its dependencies is modified. The default mechanism of automake for setting up the {{{_DEPENDENCIES}}} variable does not work for us, since it sets up this variable based on the {{{_LDADD}}} variable at the time automake is executed. However, at this time, the values of the {{{CLPLIB_LIBS}}} variable is not known, so the dependencies would be incomplete. [[BR]]
    160155  However, the configure macros that also assemble the library flags in {{{CLPLIB_LIBS}}} also provide a variable {{{CLPLIB_DEPENDENCIES}}} which is the same as the {{{CLPLIB_LIBS}}} variable, but with everything that does not look like a the name of a library file removed, esp. flags starting with {{{-l}}} and {{{-L}}}.
    161 
    162  * The '''_LDFLAGS''' should just be set as shown (to ensure that the program is compiled to hardwire the library installation directory into the executable, if shared libraries are used).
    163156
    164157----------------------------