• Tatiana A. Nurnberg's avatar
    Bug#34025: mysql_config is not returning -ldl lib flag needed when using embedded server · c5da8fbe
    Tatiana A. Nurnberg authored
    mysql_config did not output -ldl (or equivalent) when needed for --libmysqld-libs,
    so its output could be insufficient to build an application using the embedded
    server.
    
    LIBDL was already set in configure; it's now propagated all the way into the
    relevant mysql_config scripts.
    
    scripts/Makefile.am:
      We "manually" replace configure's constants in .sh scripts using sed,
      so AC_SUBST() alone is not good enough. Add LIBDL to the substitution
      list; we'll be needing it for mysql_config --libmysqld-libs
    scripts/mysql_config.pl.in:
      Add LIBDL (usually -ldl) to output of mysql_config --libmysqld-libs (perl version)
    scripts/mysql_config.sh:
      Add LIBDL (usually -ldl) to output of mysql_config --libmysqld-libs (shell version)
    c5da8fbe
mysql_config.sh 5.98 KB