From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1521) id 631D63858C62; Fri, 4 Nov 2022 00:43:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 631D63858C62 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1667522628; bh=si17vThznbcha/x+bkxzxVWW3eA0znOUOQ1gHgzNb6g=; h=From:To:Subject:Date:From; b=AZ3/HtuU/wGjTIrUEa80iWtvsx1WJk6VFwyBPTH5rt2o/GR3sljjaj7hp8fSN10lC S2EJkcTk1Iugncl3VVmR8sJaVQALGSq5dUGdA61Nj22LAohogbT0zWYoG8rbYFhrOZ 4NlO8V0jFKSQwEKe+zUFz/Frg6yiV/3GFfNNBL+Y= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Michael Frysinger To: gdb-cvs@sourceware.org Subject: [binutils-gdb] sim: build: switch to bfd & opcodes libtool linker scripts X-Act-Checkin: binutils-gdb X-Git-Author: Mike Frysinger X-Git-Refname: refs/heads/master X-Git-Oldrev: 90db43bb0325ce387da536f4939bfe01e80227b2 X-Git-Newrev: 89cf99a910ccfd95e478be81adc7493db138dfef Message-Id: <20221104004348.631D63858C62@sourceware.org> Date: Fri, 4 Nov 2022 00:43:48 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D89cf99a910cc= fd95e478be81adc7493db138dfef commit 89cf99a910ccfd95e478be81adc7493db138dfef Author: Mike Frysinger Date: Thu Nov 3 13:35:32 2022 +0545 sim: build: switch to bfd & opcodes libtool linker scripts =20 Now that we use libtool to link, we don't need to duplicate all the libs that bfd itself uses. This simplifies the configure & Makefile. Diff: --- sim/Makefile.in | 23 +-- sim/aclocal.m4 | 4 - sim/arch-subdir.mk.in | 6 - sim/common/Make-common.in | 16 +- sim/config.h.in | 10 -- sim/configure | 363 +-----------------------------------------= ---- sim/m4/sim_ac_platform.m4 | 16 +- sim/moxie/Makefile.in | 2 +- sim/ppc/Makefile.in | 9 +- 9 files changed, 18 insertions(+), 431 deletions(-) diff --git a/sim/Makefile.in b/sim/Makefile.in index 39fbc2f1fd2..f660db9199f 100644 --- a/sim/Makefile.in +++ b/sim/Makefile.in @@ -166,13 +166,9 @@ subdir =3D . ACLOCAL_M4 =3D $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps =3D $(top_srcdir)/../config/acx.m4 \ $(top_srcdir)/../config/depstand.m4 \ - $(top_srcdir)/../config/gettext-sister.m4 \ $(top_srcdir)/../config/lead-dot.m4 \ $(top_srcdir)/../config/override.m4 \ - $(top_srcdir)/../config/pkg.m4 \ - $(top_srcdir)/../config/plugins.m4 \ - $(top_srcdir)/../config/zlib.m4 \ - $(top_srcdir)/../config/zstd.m4 $(top_srcdir)/../libtool.m4 \ + $(top_srcdir)/../config/pkg.m4 $(top_srcdir)/../libtool.m4 \ $(top_srcdir)/../ltoptions.m4 $(top_srcdir)/../ltsugar.m4 \ $(top_srcdir)/../ltversion.m4 $(top_srcdir)/../lt~obsolete.m4 \ $(top_srcdir)/m4/sim_ac_option_alignment.m4 \ @@ -695,8 +691,6 @@ AUTOCONF =3D @AUTOCONF@ AUTOHEADER =3D @AUTOHEADER@ AUTOMAKE =3D @AUTOMAKE@ AWK =3D @AWK@ -CATALOGS =3D @CATALOGS@ -CATOBJEXT =3D @CATOBJEXT@ CC =3D @CC@ CCDEPMODE =3D @CCDEPMODE@ CC_FOR_BUILD =3D @CC_FOR_BUILD@ @@ -741,7 +735,6 @@ CPPFLAGS =3D @CPPFLAGS@ CPPFLAGS_FOR_BUILD =3D @CPPFLAGS_FOR_BUILD@ CYGPATH_W =3D @CYGPATH_W@ C_DIALECT =3D @C_DIALECT@ -DATADIRNAME =3D @DATADIRNAME@ DEFS =3D @DEFS@ DEPDIR =3D @DEPDIR@ DSYMUTIL =3D @DSYMUTIL@ @@ -753,16 +746,12 @@ ECHO_T =3D @ECHO_T@ EGREP =3D @EGREP@ EXEEXT =3D @EXEEXT@ FGREP =3D @FGREP@ -GENCAT =3D @GENCAT@ -GMSGFMT =3D @GMSGFMT@ GREP =3D @GREP@ -INCINTL =3D @INCINTL@ INSTALL =3D @INSTALL@ INSTALL_DATA =3D @INSTALL_DATA@ INSTALL_PROGRAM =3D @INSTALL_PROGRAM@ INSTALL_SCRIPT =3D @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM =3D @INSTALL_STRIP_PROGRAM@ -INSTOBJEXT =3D @INSTOBJEXT@ LD =3D @LD@ LDFLAGS =3D @LDFLAGS@ LDFLAGS_FOR_BUILD =3D @LDFLAGS_FOR_BUILD@ @@ -799,8 +788,6 @@ LD_FOR_TARGET_RL78 =3D @LD_FOR_TARGET_RL78@ LD_FOR_TARGET_RX =3D @LD_FOR_TARGET_RX@ LD_FOR_TARGET_SH =3D @LD_FOR_TARGET_SH@ LD_FOR_TARGET_V850 =3D @LD_FOR_TARGET_V850@ -LIBINTL =3D @LIBINTL@ -LIBINTL_DEP =3D @LIBINTL_DEP@ LIBOBJS =3D @LIBOBJS@ LIBS =3D @LIBS@ LIBTOOL =3D @LIBTOOL@ @@ -828,7 +815,6 @@ PKGVERSION =3D @PKGVERSION@ PKG_CONFIG =3D @PKG_CONFIG@ PKG_CONFIG_LIBDIR =3D @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH =3D @PKG_CONFIG_PATH@ -POSUB =3D @POSUB@ RANLIB =3D @RANLIB@ RANLIB_FOR_BUILD =3D @RANLIB_FOR_BUILD@ READLINE_CFLAGS =3D @READLINE_CFLAGS@ @@ -850,13 +836,9 @@ SIM_SUBDIRS =3D @SIM_SUBDIRS@ SIM_TOOLCHAIN_VARS =3D @SIM_TOOLCHAIN_VARS@ STRIP =3D @STRIP@ TERMCAP_LIB =3D @TERMCAP_LIB@ -USE_NLS =3D @USE_NLS@ VERSION =3D @VERSION@ WARN_CFLAGS =3D @WARN_CFLAGS@ WERROR_CFLAGS =3D @WERROR_CFLAGS@ -XGETTEXT =3D @XGETTEXT@ -ZSTD_CFLAGS =3D @ZSTD_CFLAGS@ -ZSTD_LIBS =3D @ZSTD_LIBS@ abs_builddir =3D @abs_builddir@ abs_srcdir =3D @abs_srcdir@ abs_top_builddir =3D @abs_top_builddir@ @@ -896,7 +878,6 @@ libdir =3D @libdir@ libexecdir =3D @libexecdir@ localedir =3D @localedir@ localstatedir =3D @localstatedir@ -lt_cv_dlopen_libs =3D @lt_cv_dlopen_libs@ mandir =3D @mandir@ mkdir_p =3D @mkdir_p@ oldincludedir =3D @oldincludedir@ @@ -921,8 +902,6 @@ target_vendor =3D @target_vendor@ top_build_prefix =3D @top_build_prefix@ top_builddir =3D @top_builddir@ top_srcdir =3D @top_srcdir@ -zlibdir =3D @zlibdir@ -zlibinc =3D @zlibinc@ AUTOMAKE_OPTIONS =3D dejagnu foreign no-dist subdir-objects ACLOCAL_AMFLAGS =3D -Im4 -I.. -I../config GNULIB_PARENT_DIR =3D .. diff --git a/sim/aclocal.m4 b/sim/aclocal.m4 index 5ecf08aa3e9..f220c82af75 100644 --- a/sim/aclocal.m4 +++ b/sim/aclocal.m4 @@ -1169,13 +1169,9 @@ AC_SUBST([am__untar]) =20 m4_include([../config/acx.m4]) m4_include([../config/depstand.m4]) -m4_include([../config/gettext-sister.m4]) m4_include([../config/lead-dot.m4]) m4_include([../config/override.m4]) m4_include([../config/pkg.m4]) -m4_include([../config/plugins.m4]) -m4_include([../config/zlib.m4]) -m4_include([../config/zstd.m4]) m4_include([../libtool.m4]) m4_include([../ltoptions.m4]) m4_include([../ltsugar.m4]) diff --git a/sim/arch-subdir.mk.in b/sim/arch-subdir.mk.in index dd75abcec22..bd047c97687 100644 --- a/sim/arch-subdir.mk.in +++ b/sim/arch-subdir.mk.in @@ -53,12 +53,6 @@ am__v_lt_1 =3D DEPMODE =3D @CCDEPMODE@ DEPDIR =3D @DEPDIR@ =20 -zlibdir =3D @zlibdir@ -ZSTD_LIBS =3D @ZSTD_LIBS@ -@PLUGINS_TRUE@LIBDL =3D @lt_cv_dlopen_libs@ -LIBINTL =3D @LIBINTL@ -LIBINTL_DEP =3D @LIBINTL_DEP@ -INTL_CFLAGS =3D @INCINTL@ SDL_CFLAGS =3D @SDL_CFLAGS@ SDL_LIBS =3D @SDL_LIBS@ TERMCAP_LIB =3D @TERMCAP_LIB@ diff --git a/sim/common/Make-common.in b/sim/common/Make-common.in index 83b1cf111c7..c58eb0d3ba9 100644 --- a/sim/common/Make-common.in +++ b/sim/common/Make-common.in @@ -210,8 +210,7 @@ CSEARCH =3D -I. -I$(srcdir) -I$(srccom) \ -I$(srcroot)/include \ -I../../bfd -I$(srcroot)/bfd \ -I$(srcroot)/opcodes \ - -I../.. \ - $(INTL_CFLAGS) + -I../.. ALL_CFLAGS =3D $(CONFIG_CFLAGS) $(CSEARCH) $(INCGNU) $(SIM_EXTRA_CFLAGS) $= (CFLAGS) BUILD_CFLAGS =3D $(CFLAGS_FOR_BUILD) $(CSEARCH) =20 @@ -219,14 +218,13 @@ COMMON_DEP_CFLAGS =3D $(CONFIG_CFLAGS) $(CSEARCH) $(S= IM_EXTRA_CFLAGS) =20 SIM_HW_DEVICES =3D cfi core pal glue $(SIM_EXTRA_HW_DEVICES) =20 -ZLIB =3D $(zlibdir) -lz LIBIBERTY_LIB =3D ../../libiberty/libiberty.a -BFD_LIB =3D ../../bfd/libbfd.a -OPCODES_LIB =3D ../../opcodes/libopcodes.a -CONFIG_LIBS =3D $(COMMON_LIBS) @LIBS@ $(ZLIB) $(ZSTD_LIBS) -LIBDEPS =3D $(BFD_LIB) $(OPCODES_LIB) $(LIBINTL_DEP) $(LIBIBERTY_LIB) -EXTRA_LIBS =3D $(BFD_LIB) $(OPCODES_LIB) $(LIBINTL) $(LIBIBERTY_LIB) \ - $(CONFIG_LIBS) $(SIM_EXTRA_LIBS) $(LIBDL) $(LIBGNU) $(LIBGNU_EXTRA_LIBS) +BFD_LIB =3D ../../bfd/libbfd.la +OPCODES_LIB =3D ../../opcodes/libopcodes.la +CONFIG_LIBS =3D $(COMMON_LIBS) @LIBS@ +LIBDEPS =3D $(BFD_LIB) $(OPCODES_LIB) $(LIBIBERTY_LIB) +EXTRA_LIBS =3D $(BFD_LIB) $(OPCODES_LIB) $(LIBIBERTY_LIB) \ + $(CONFIG_LIBS) $(SIM_EXTRA_LIBS) $(LIBGNU) $(LIBGNU_EXTRA_LIBS) =20 COMMON_OBJS_NAMES =3D \ callback.o \ diff --git a/sim/config.h.in b/sim/config.h.in index 9a94b289e46..ba167b36a7c 100644 --- a/sim/config.h.in +++ b/sim/config.h.in @@ -6,10 +6,6 @@ /* Sim debug setting */ #undef DEBUG =20 -/* Define to 1 if translation of program messages to the user's native - language is requested. */ -#undef ENABLE_NLS - /* Define to the type of elements in the array set by `getgroups'. Usually this is either `int' or `gid_t'. */ #undef GETGROUPS_T @@ -383,12 +379,6 @@ /* Define to 1 if you have the header file. */ #undef HAVE_UTIME_H =20 -/* Define to 1 if you have the header file. */ -#undef HAVE_WINDOWS_H - -/* Define to 1 if zstd is enabled. */ -#undef HAVE_ZSTD - /* Define to 1 if the system has the type `__int128'. */ #undef HAVE___INT128 =20 diff --git a/sim/configure b/sim/configure index 538e528cb1b..c91cad2e25e 100755 --- a/sim/configure +++ b/sim/configure @@ -861,7 +861,6 @@ READLINE_LIB TERMCAP_LIB SDL_LIBS SDL_CFLAGS -lt_cv_dlopen_libs OTOOL64 OTOOL LIPO @@ -878,24 +877,6 @@ LD FGREP SED LIBTOOL -PLUGINS_FALSE -PLUGINS_TRUE -ZSTD_LIBS -ZSTD_CFLAGS -zlibinc -zlibdir -CATOBJEXT -GENCAT -INSTOBJEXT -DATADIRNAME -CATALOGS -POSUB -GMSGFMT -XGETTEXT -INCINTL -LIBINTL_DEP -LIBINTL -USE_NLS LIBOBJS C_DIALECT PKG_CONFIG_LIBDIR @@ -984,9 +965,6 @@ ac_user_opts=3D' enable_option_checking with_pkgversion with_bugurl -with_system_zlib -with_zstd -enable_plugins enable_shared enable_static with_pic @@ -1030,8 +1008,6 @@ CPP PKG_CONFIG PKG_CONFIG_PATH PKG_CONFIG_LIBDIR -ZSTD_CFLAGS -ZSTD_LIBS SDL_CFLAGS SDL_LIBS AS_FOR_TARGET_AARCH64 @@ -1755,7 +1731,6 @@ Optional Features: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE= =3Dno) --enable-FEATURE[=3DARG] include FEATURE [ARG=3Dyes] - --enable-plugins Enable support for plugins --enable-shared[=3DPKGS] build shared libraries [default=3Dyes] --enable-static[=3DPKGS] build static libraries [default=3Dyes] --enable-fast-install[=3DPKGS] @@ -1813,9 +1788,6 @@ Optional Packages: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=3Dno) --with-pkgversion=3DPKG Use PKG in the version string in place of "SIM" --with-bugurl=3DURL Direct users to URL to report a bug - --with-system-zlib use installed libz - --with-zstd support zstd compressed debug sections - (default=3Dauto) --with-pic try to use only PIC/non-PIC objects [default=3Du= se both] --with-gnu-ld assume the C compiler uses GNU ld [default=3Dno] @@ -1834,8 +1806,6 @@ Some influential environment variables: directories to add to pkg-config's search path PKG_CONFIG_LIBDIR path overriding pkg-config's built-in search path - ZSTD_CFLAGS C compiler flags for ZSTD, overriding pkg-config - ZSTD_LIBS linker flags for ZSTD, overriding pkg-config SDL_CFLAGS C compiler flags for SDL, overriding pkg-config SDL_LIBS linker flags for SDL, overriding pkg-config AS_FOR_TARGET_AARCH64 @@ -8988,336 +8958,16 @@ $as_echo "#define gid_t int" >>confdefs.h fi =20 =20 -ALL_LINGUAS=3D -# If we haven't got the data from the intl directory, -# assume NLS is disabled. -USE_NLS=3Dno -LIBINTL=3D -LIBINTL_DEP=3D -INCINTL=3D -XGETTEXT=3D -GMSGFMT=3D -POSUB=3D - -if test -f ../intl/config.intl; then - . ../intl/config.intl -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested= " >&5 -$as_echo_n "checking whether NLS is requested... " >&6; } -if test x"$USE_NLS" !=3D xyes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -$as_echo "#define ENABLE_NLS 1" >>confdefs.h - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be ins= talled" >&5 -$as_echo_n "checking for catalogs to be installed... " >&6; } - # Look for .po and .gmo files in the source directory. - CATALOGS=3D - XLINGUAS=3D - for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do - # If there aren't any .gmo files the shell will give us the - # literal string "../path/to/srcdir/po/*.gmo" which has to be - # weeded out. - case "$cat" in *\**) - continue;; - esac - # The quadruple backslash is collapsed to a double backslash - # by the backticks, then collapsed again by the double quotes, - # leaving us with one backslash in the sed expression (right - # before the dot that mustn't act as a wildcard). - cat=3D`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` - lang=3D`echo $cat | sed -e "s!\\\\.gmo!!"` - # The user is allowed to set LINGUAS to a list of languages to - # install catalogs for. If it's empty that means "all of them." - if test "x$LINGUAS" =3D x; then - CATALOGS=3D"$CATALOGS $cat" - XLINGUAS=3D"$XLINGUAS $lang" - else - case "$LINGUAS" in *$lang*) - CATALOGS=3D"$CATALOGS $cat" - XLINGUAS=3D"$XLINGUAS $lang" - ;; - esac - fi - done - LINGUAS=3D"$XLINGUAS" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 -$as_echo "$LINGUAS" >&6; } - - - DATADIRNAME=3Dshare - - INSTOBJEXT=3D.mo - - GENCAT=3Dgencat - - CATOBJEXT=3D.gmo - -fi - - - # Use the system's zlib library. - zlibdir=3D"-L\$(top_builddir)/../zlib" - zlibinc=3D"-I\$(top_srcdir)/../zlib" - -# Check whether --with-system-zlib was given. -if test "${with_system_zlib+set}" =3D set; then : - withval=3D$with_system_zlib; if test x$with_system_zlib =3D xyes ; then - zlibdir=3D - zlibinc=3D - fi - -fi - - - - - - -# Check whether --with-zstd was given. -if test "${with_zstd+set}" =3D set; then : - withval=3D$with_zstd; -else - with_zstd=3Dauto -fi - - -if test "$with_zstd" !=3D no; then : - -pkg_failed=3Dno -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd" >&5 -$as_echo_n "checking for libzstd... " >&6; } - -if test -n "$ZSTD_CFLAGS"; then - pkg_cv_ZSTD_CFLAGS=3D"$ZSTD_CFLAGS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --pri= nt-errors \"libzstd\""; } >&5 - ($PKG_CONFIG --exists --print-errors "libzstd") 2>&5 - ac_status=3D$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? =3D $ac_status" >&5 - test $ac_status =3D 0; }; then - pkg_cv_ZSTD_CFLAGS=3D`$PKG_CONFIG --cflags "libzstd" 2>/dev/null` - test "x$?" !=3D "x0" && pkg_failed=3Dyes -else - pkg_failed=3Dyes -fi - else - pkg_failed=3Duntried -fi -if test -n "$ZSTD_LIBS"; then - pkg_cv_ZSTD_LIBS=3D"$ZSTD_LIBS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --pri= nt-errors \"libzstd\""; } >&5 - ($PKG_CONFIG --exists --print-errors "libzstd") 2>&5 - ac_status=3D$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? =3D $ac_status" >&5 - test $ac_status =3D 0; }; then - pkg_cv_ZSTD_LIBS=3D`$PKG_CONFIG --libs "libzstd" 2>/dev/null` - test "x$?" !=3D "x0" && pkg_failed=3Dyes -else - pkg_failed=3Dyes -fi - else - pkg_failed=3Duntried -fi - -if test $pkg_failed =3D no; then - pkg_save_LDFLAGS=3D"$LDFLAGS" - LDFLAGS=3D"$LDFLAGS $pkg_cv_ZSTD_LIBS" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - -else - pkg_failed=3Dyes -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - LDFLAGS=3D$pkg_save_LDFLAGS -fi - - - -if test $pkg_failed =3D yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then - _pkg_short_errors_supported=3Dyes -else - _pkg_short_errors_supported=3Dno -fi - if test $_pkg_short_errors_supported =3D yes; then - ZSTD_PKG_ERRORS=3D`$PKG_CONFIG --short-errors --print-errors --cf= lags --libs "libzstd" 2>&1` - else - ZSTD_PKG_ERRORS=3D`$PKG_CONFIG --print-errors --cflags --libs "li= bzstd" 2>&1` - fi - # Put the nasty error message in config.log where it belongs - echo "$ZSTD_PKG_ERRORS" >&5 - - - if test "$with_zstd" =3D yes; then - as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is n= ot found" "$LINENO" 5 - fi - -elif test $pkg_failed =3D untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - - if test "$with_zstd" =3D yes; then - as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is n= ot found" "$LINENO" 5 - fi - -else - ZSTD_CFLAGS=3D$pkg_cv_ZSTD_CFLAGS - ZSTD_LIBS=3D$pkg_cv_ZSTD_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - - -$as_echo "#define HAVE_ZSTD 1" >>confdefs.h - - -fi - -fi - - - - maybe_plugins=3Dno - for ac_header in dlfcn.h -do : - ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" = "$ac_includes_default -" -if test "x$ac_cv_header_dlfcn_h" =3D xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_DLFCN_H 1 -_ACEOF - maybe_plugins=3Dyes -fi - -done - - for ac_header in windows.h -do : - ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows= _h" "$ac_includes_default -" -if test "x$ac_cv_header_windows_h" =3D xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_WINDOWS_H 1 -_ACEOF - maybe_plugins=3Dyes -fi - -done - - - # Check whether --enable-plugins was given. -if test "${enable_plugins+set}" =3D set; then : - enableval=3D$enable_plugins; case "${enableval}" in - no) plugins=3Dno ;; - *) plugins=3Dyes - if test "$maybe_plugins" !=3D "yes" ; then - as_fn_error $? "Building with plugin support requires a host that supp= orts dlopen." "$LINENO" 5 - fi ;; - esac -else - plugins=3D$maybe_plugins - -fi - - if test "$plugins" =3D "yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containi= ng dlsym" >&5 -$as_echo_n "checking for library containing dlsym... " >&6; } -if ${ac_cv_search_dlsym+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_func_search_save_LIBS=3D$LIBS -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char dlsym (); -int -main () -{ -return dlsym (); - ; - return 0; -} -_ACEOF -for ac_lib in '' dl; do - if test -z "$ac_lib"; then - ac_res=3D"none required" - else - ac_res=3D-l$ac_lib - LIBS=3D"-l$ac_lib $ac_func_search_save_LIBS" - fi - if ac_fn_c_try_link "$LINENO"; then : - ac_cv_search_dlsym=3D$ac_res -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext - if ${ac_cv_search_dlsym+:} false; then : - break -fi -done -if ${ac_cv_search_dlsym+:} false; then : - -else - ac_cv_search_dlsym=3Dno -fi -rm conftest.$ac_ext -LIBS=3D$ac_func_search_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5 -$as_echo "$ac_cv_search_dlsym" >&6; } -ac_res=3D$ac_cv_search_dlsym -if test "$ac_res" !=3D no; then : - test "$ac_res" =3D "none required" || LIBS=3D"$ac_res $LIBS" - -fi - - fi - - if test "$plugins" =3D yes; then - PLUGINS_TRUE=3D - PLUGINS_FALSE=3D'#' -else - PLUGINS_TRUE=3D'#' - PLUGINS_FALSE=3D -fi - =20 =20 =20 =20 # Set options -enable_dlopen=3Dyes =20 =20 =20 + enable_dlopen=3Dno + =20 enable_win32_dll=3Dno =20 @@ -12776,7 +12426,7 @@ else lt_dlunknown=3D0; lt_dlno_uscore=3D1; lt_dlneed_uscore=3D2 lt_status=3D$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 12779 "configure" +#line 12429 "configure" #include "confdefs.h" =20 #if HAVE_DLFCN_H @@ -12882,7 +12532,7 @@ else lt_dlunknown=3D0; lt_dlno_uscore=3D1; lt_dlneed_uscore=3D2 lt_status=3D$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 12885 "configure" +#line 12535 "configure" #include "confdefs.h" =20 #if HAVE_DLFCN_H @@ -13120,7 +12770,6 @@ CC=3D"$lt_save_CC" =20 =20 =20 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5 $as_echo_n "checking for bind in -lsocket... " >&6; } if ${ac_cv_lib_socket_bind+:} false; then : @@ -16625,10 +16274,6 @@ LTLIBOBJS=3D$ac_ltlibobjs =20 =20 =20 -if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then - as_fn_error $? "conditional \"PLUGINS\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"= ; then as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 diff --git a/sim/m4/sim_ac_platform.m4 b/sim/m4/sim_ac_platform.m4 index a91b2334b84..92fb00a3d79 100644 --- a/sim/m4/sim_ac_platform.m4 +++ b/sim/m4/sim_ac_platform.m4 @@ -142,21 +142,7 @@ AC_TYPE_SIGNAL AC_TYPE_SIZE_T AC_TYPE_UID_T =20 -dnl We don't use gettext, but bfd does. So we do the appropriate checks -dnl to see if there are intl libraries we should link against. -ALL_LINGUAS=3D -ZW_GNU_GETTEXT_SISTER_DIR - -dnl BFD conditionally uses zlib, so we must link it in if libbfd does, by -dnl using the same condition. -AM_ZLIB -AC_ZSTD - -dnl BFD uses libdl when when plugins enabled. -AC_PLUGINS -AM_CONDITIONAL(PLUGINS, test "$plugins" =3D yes) -LT_INIT([dlopen]) -AC_SUBST(lt_cv_dlopen_libs) +LT_INIT =20 dnl Libraries. AC_CHECK_LIB(socket, bind) diff --git a/sim/moxie/Makefile.in b/sim/moxie/Makefile.in index b267adc026d..1c01ec60516 100644 --- a/sim/moxie/Makefile.in +++ b/sim/moxie/Makefile.in @@ -22,7 +22,7 @@ SIM_OBJS =3D \ interp.o \ sim-resume.o =20 -SIM_EXTRA_LIBS =3D -lm -lz +SIM_EXTRA_LIBS =3D -lm SIM_EXTRA_CFLAGS =3D -DDTB=3D"\"$(dtbdir)/moxie-gdb.dtb\"" =20 ## COMMON_POST_CONFIG_FRAG diff --git a/sim/ppc/Makefile.in b/sim/ppc/Makefile.in index 2b5a11aefea..b1fda1fbff4 100644 --- a/sim/ppc/Makefile.in +++ b/sim/ppc/Makefile.in @@ -88,7 +88,7 @@ CONFIG_CFLAGS =3D \ $(DEVZERO_CFLAGS) SIM_FPU_CFLAGS =3D -DHAVE_COMMON_FPU -I../common -I${srcdir}/../common =20 -STD_CFLAGS =3D $(CFLAGS) $(WERROR_CFLAGS) $(INLINE_CFLAGS) $(CONFIG_CFLAGS= ) $(WARN_CFLAGS) $(INCLUDES) $(INCGNU) $(INTL_CFLAGS) $(SIM_FPU_CFLAGS) +STD_CFLAGS =3D $(CFLAGS) $(WERROR_CFLAGS) $(INLINE_CFLAGS) $(CONFIG_CFLAGS= ) $(WARN_CFLAGS) $(INCLUDES) $(INCGNU) $(SIM_FPU_CFLAGS) NOWARN_CFLAGS =3D $(CFLAGS) $(INLINE_CFLAGS) $(CONFIG_CFLAGS) $(INCLUDES) = $(SIM_FPU_CFLAGS) BUILD_CFLAGS =3D $(CFLAGS_FOR_BUILD) $(INCLUDES) $(WARN_CFLAGS) =20 @@ -132,8 +132,7 @@ GDB_INCLUDES =3D -I../../gdb -I$(srcdir)/../../gdb -I$= (srcdir)/../../gdb/config INCLUDES =3D -I. -I$(srcdir) $(LIB_INCLUDES) $(BFD_INCLUDES) $(GDB_INCLUDE= S) -I../.. =20 LIBIBERTY_LIB =3D ../../libiberty/libiberty.a -BFD_LIB =3D ../../bfd/libbfd.a -ZLIB =3D $(zlibdir) -lz +BFD_LIB =3D ../../bfd/libbfd.la =20 =20 TARGETLIB =3D libsim.a @@ -521,9 +520,9 @@ PACKAGE_SRC =3D @sim_pk_src@ PACKAGE_OBJ =3D @sim_pk_obj@ =20 =20 -psim$(EXEEXT): $(TARGETLIB) main.o $(LIBIBERTY_LIB) $(BFD_LIB) $(LIBINTL_D= EP) +psim$(EXEEXT): $(TARGETLIB) main.o $(LIBIBERTY_LIB) $(BFD_LIB) $(ECHO_CCLD) $(LIBTOOL) $(AM_V_lt) --tag=3DCC --mode=3Dlink \ - $(CC) $(CFLAGS) $(LDFLAGS) -o psim$(EXEEXT) main.o $(TARGETLIB) $(BFD_L= IB) $(ZLIB) $(ZSTD_LIBS) $(LIBINTL) $(LIBIBERTY_LIB) $(LIBS) + $(CC) $(CFLAGS) $(LDFLAGS) -o psim$(EXEEXT) main.o $(TARGETLIB) $(BFD_L= IB) $(LIBIBERTY_LIB) $(LIBS) =20 run$(EXEEXT): psim$(EXEEXT) $(SILENCE) rm -f $@