a20893cf6b
With the introduction of C++20 modules and libcody, cc1plus and cc1objplus gained a dependency on the socket functions. Before those were merged into libc in Solaris 11.4, one needed to link with -lsocket -lnsl on Solaris, so that merge broke the Solaris 11.3 build. While we already have 4 different checks for those libraries in the tree, I decided to import autoconf-archive's AX_LIB_SOCKET_NSL macro instead. At the same time, the patch only links libcody and the networking libs where needed (cc1plus, cc1objplus). Bootstrapped without regressions on i386-pc-solaris2.11 (Solaris 11.3 and 11.4), sparc-sun-solaris2.11, and x86_64-pc-linux-gnu. 2020-12-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> c++tools: PR c++/98316 * configure.ac: Include ../config/ax_lib_socket_nsl.m4. (NETLIBS): Determine using AX_LIB_SOCKET_NSL. * configure: Regenerate. * Makefile.in (NETLIBS): Define. (g++-mapper-server$(exeext)): Add $(NETLIBS). gcc/objcp: PR c++/98316 * Make-lang.in (cc1objplus$(exeext)): Add $(CODYLIB), $(NETLIBS). gcc/cp: PR c++/98316 * Make-lang.in (cc1plus$(exeext)): Add $(CODYLIB), $(NETLIBS). gcc: PR c++/98316 * configure.ac (NETLIBS): Determine using AX_LIB_SOCKET_NSL. * aclocal.m4, configure: Regenerate. * Makefile.in (NETLIBS): Define. (BACKEND): Remove $(CODYLIB). config: PR c++/98316 * ax_lib_socket_nsl.m4: Import from autoconf-archive.
43 lines
1.6 KiB
Plaintext
43 lines
1.6 KiB
Plaintext
# generated automatically by aclocal 1.15.1 -*- Autoconf -*-
|
|
|
|
# Copyright (C) 1996-2017 Free Software Foundation, Inc.
|
|
|
|
# This file is free software; the Free Software Foundation
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
# with or without modifications, as long as this notice is preserved.
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
|
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
|
# PARTICULAR PURPOSE.
|
|
|
|
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
|
|
m4_include([../libtool.m4])
|
|
m4_include([../ltoptions.m4])
|
|
m4_include([../ltsugar.m4])
|
|
m4_include([../ltversion.m4])
|
|
m4_include([../lt~obsolete.m4])
|
|
m4_include([../config/acx.m4])
|
|
m4_include([../config/ax_lib_socket_nsl.m4])
|
|
m4_include([../config/cet.m4])
|
|
m4_include([../config/codeset.m4])
|
|
m4_include([../config/depstand.m4])
|
|
m4_include([../config/dfp.m4])
|
|
m4_include([../config/enable.m4])
|
|
m4_include([../config/gcc-plugin.m4])
|
|
m4_include([../config/gettext-sister.m4])
|
|
m4_include([../config/iconv.m4])
|
|
m4_include([../config/lcmessage.m4])
|
|
m4_include([../config/lead-dot.m4])
|
|
m4_include([../config/lib-ld.m4])
|
|
m4_include([../config/lib-link.m4])
|
|
m4_include([../config/lib-prefix.m4])
|
|
m4_include([../config/mmap.m4])
|
|
m4_include([../config/override.m4])
|
|
m4_include([../config/picflag.m4])
|
|
m4_include([../config/progtest.m4])
|
|
m4_include([../config/stdint.m4])
|
|
m4_include([../config/warnings.m4])
|
|
m4_include([../config/zlib.m4])
|
|
m4_include([acinclude.m4])
|