Changeset 3062


Ignore:
Timestamp:
Nov 11, 2013 12:07:23 PM (6 years ago)
Author:
stefan
Message:

add a so far undocumented configure option that could be used in
projects Makefiles to enable linking of dependencies into shared
libraries (via LIBADD), see #105:11

  • sets AM_CONDITIONAL DEPENDENCY_LINKING
  • sets LT_LDFLAGS to -no-undefined if enabled
  • default is disabled so far
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/coin.m4

    r3052 r3062  
    18181818# AC_MSG_NOTICE([End of INIT_AUTO_TOOLS.])
    18191819
     1820AC_ARG_ENABLE([dependency-linking],[],
     1821  [dependency_linking="$enableval"],
     1822  [dependency_linking=no])
     1823
    18201824# ToDo
    18211825# For now, don't use the -no-undefined flag, since the Makefiles are
    18221826# not yet set up that way.  But we need to fix this, when we want
    18231827# to comile DLLs under Windows.
    1824 LT_LDFLAGS=
     1828if test "$dependency_linking" = yes ;
     1829then
     1830  LT_LDFLAGS="-no-undefined"
     1831else
     1832  LT_LDFLAGS=
     1833fi
     1834
     1835AM_CONDITIONAL(DEPENDENCY_LINKING, [test "$dependency_linking" = yes])
    18251836
    18261837# Check if we want to set the library version
Note: See TracChangeset for help on using the changeset viewer.