diff options
author | Ijaz, Abdul B <abdul.b.ijaz@intel.com> | 2025-08-10 08:33:30 -0600 |
---|---|---|
committer | Jeff Law <jlaw@ventanamicro.com> | 2025-08-10 08:33:30 -0600 |
commit | 8a3ad190c14789cde0b03142760b14b5675e8b39 (patch) | |
tree | 9b7bd5d367183b42eef10ee73887f6ae5cc7c45b /gcc/fortran/resolve.c | |
parent | 57ea630ecd043eb9e27b3b4db4359d78a85f09ad (diff) | |
download | gcc-8a3ad190c14789cde0b03142760b14b5675e8b39.zip gcc-8a3ad190c14789cde0b03142760b14b5675e8b39.tar.gz gcc-8a3ad190c14789cde0b03142760b14b5675e8b39.tar.bz2 |
config: Handle dash in library name for AC_LIB_LINKAGEFLAGS_BODY
For a library with dash in the name like yaml-cpp the AC_LIB_LINKAGEFLAGS_BODY
function generates a with_libname_type argument variable name with a dash but
this results in configure error. Since dashes are not allowed in the variable
name.
This change handles such cases and in case input library for the
AC_LIB_HAVE_LINKFLAGS has dash then it replaces it with the underscore "_".
Example of an error for yaml-cpp library before the change using gcc config
scripts in gdb:
gdb/gdb/configure: line 22868: with_libyaml-cpp_type=auto: command not found
After having underscore for this variable name:
checking whether to use yaml-cpp... yes
checking for libyaml-cpp... yes
checking how to link with libyaml-cpp... -lyaml-cpp
config/ChangeLog:
* lib-link.m4: Handle dash in the library name for
AC_LIB_LINKFLAGS_BODY.
Diffstat (limited to 'gcc/fortran/resolve.c')
0 files changed, 0 insertions, 0 deletions