mirror of
https://github.com/dashpay/dash.git
synced 2024-12-24 11:32:46 +01:00
merge bitcoin#29185: remove --enable-lto
This commit is contained in:
parent
6d75a81f62
commit
cb024d968b
17
configure.ac
17
configure.ac
@ -345,11 +345,6 @@ AC_ARG_WITH([boost-process],
|
|||||||
[boost_process=$withval],
|
[boost_process=$withval],
|
||||||
[boost_process=no])
|
[boost_process=no])
|
||||||
|
|
||||||
AC_ARG_ENABLE([lto],
|
|
||||||
[AS_HELP_STRING([--enable-lto],[build using LTO (default is no)])],
|
|
||||||
[enable_lto=$enableval],
|
|
||||||
[enable_lto=no])
|
|
||||||
|
|
||||||
AC_LANG_PUSH([C++])
|
AC_LANG_PUSH([C++])
|
||||||
|
|
||||||
dnl Check for a flag to turn compiler warnings into errors. This is helpful for checks which may
|
dnl Check for a flag to turn compiler warnings into errors. This is helpful for checks which may
|
||||||
@ -408,11 +403,6 @@ else
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "x$enable_lto" = "xyes"; then
|
|
||||||
AX_CHECK_COMPILE_FLAG([-flto], [LTO_CXXFLAGS="$LTO_CXXFLAGS -flto"], [AC_MSG_ERROR([compile failed with -flto])], [$CXXFLAG_WERROR])
|
|
||||||
AX_CHECK_LINK_FLAG([-flto], [LTO_LDFLAGS="$LTO_LDFLAGS -flto"], [AC_MSG_ERROR([link failed with -flto])], [$CXXFLAG_WERROR])
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test "x$enable_stacktraces" != xno; then
|
if test "x$enable_stacktraces" != xno; then
|
||||||
AC_CHECK_HEADERS([execinfo.h], [], [enable_stacktraces=no])
|
AC_CHECK_HEADERS([execinfo.h], [], [enable_stacktraces=no])
|
||||||
fi
|
fi
|
||||||
@ -1887,8 +1877,6 @@ AC_SUBST(GPROF_LDFLAGS)
|
|||||||
AC_SUBST(HARDENED_CXXFLAGS)
|
AC_SUBST(HARDENED_CXXFLAGS)
|
||||||
AC_SUBST(HARDENED_CPPFLAGS)
|
AC_SUBST(HARDENED_CPPFLAGS)
|
||||||
AC_SUBST(HARDENED_LDFLAGS)
|
AC_SUBST(HARDENED_LDFLAGS)
|
||||||
AC_SUBST(LTO_CXXFLAGS)
|
|
||||||
AC_SUBST(LTO_LDFLAGS)
|
|
||||||
AC_SUBST(PIC_FLAGS)
|
AC_SUBST(PIC_FLAGS)
|
||||||
AC_SUBST(PIE_FLAGS)
|
AC_SUBST(PIE_FLAGS)
|
||||||
AC_SUBST(SANITIZER_CXXFLAGS)
|
AC_SUBST(SANITIZER_CXXFLAGS)
|
||||||
@ -1999,7 +1987,6 @@ echo " crash hooks enabled = $enable_crashhooks"
|
|||||||
echo " miner enabled = $enable_miner"
|
echo " miner enabled = $enable_miner"
|
||||||
echo " gprof enabled = $enable_gprof"
|
echo " gprof enabled = $enable_gprof"
|
||||||
echo " werror = $enable_werror"
|
echo " werror = $enable_werror"
|
||||||
echo " LTO = $enable_lto"
|
|
||||||
echo
|
echo
|
||||||
echo " target os = $host_os"
|
echo " target os = $host_os"
|
||||||
echo " build os = $build_os"
|
echo " build os = $build_os"
|
||||||
@ -2008,7 +1995,7 @@ echo " CC = $CC"
|
|||||||
echo " CFLAGS = $PTHREAD_CFLAGS $CFLAGS"
|
echo " CFLAGS = $PTHREAD_CFLAGS $CFLAGS"
|
||||||
echo " CPPFLAGS = $DEBUG_CPPFLAGS $HARDENED_CPPFLAGS $CPPFLAGS"
|
echo " CPPFLAGS = $DEBUG_CPPFLAGS $HARDENED_CPPFLAGS $CPPFLAGS"
|
||||||
echo " CXX = $CXX"
|
echo " CXX = $CXX"
|
||||||
echo " CXXFLAGS = $LTO_CXXFLAGS $DEBUG_CXXFLAGS $HARDENED_CXXFLAGS $WARN_CXXFLAGS $NOWARN_CXXFLAGS $ERROR_CXXFLAGS $GPROF_CXXFLAGS $CXXFLAGS"
|
echo " CXXFLAGS = $DEBUG_CXXFLAGS $HARDENED_CXXFLAGS $WARN_CXXFLAGS $NOWARN_CXXFLAGS $ERROR_CXXFLAGS $GPROF_CXXFLAGS $CXXFLAGS"
|
||||||
echo " LDFLAGS = $LTO_LDFLAGS $PTHREAD_LIBS $HARDENED_LDFLAGS $GPROF_LDFLAGS $LDFLAGS"
|
echo " LDFLAGS = $PTHREAD_LIBS $HARDENED_LDFLAGS $GPROF_LDFLAGS $LDFLAGS"
|
||||||
echo " ARFLAGS = $ARFLAGS"
|
echo " ARFLAGS = $ARFLAGS"
|
||||||
echo
|
echo
|
||||||
|
@ -126,7 +126,7 @@ The following can be set when running make: `make FOO=bar`
|
|||||||
- `LOG`: Use file-based logging for individual packages. During a package build its log file
|
- `LOG`: Use file-based logging for individual packages. During a package build its log file
|
||||||
resides in the `depends` directory, and the log file is printed out automatically in case
|
resides in the `depends` directory, and the log file is printed out automatically in case
|
||||||
of build error. After successful build log files are moved along with package archives
|
of build error. After successful build log files are moved along with package archives
|
||||||
- `LTO`: Use LTO when building packages.
|
- `LTO`: Enable options needed for LTO. Does not add `-flto` related options to *FLAGS.
|
||||||
|
|
||||||
If some packages are not built, for example `make NO_WALLET=1`, the appropriate
|
If some packages are not built, for example `make NO_WALLET=1`, the appropriate
|
||||||
options will be passed to Dash Core's configure. In this case, `--disable-wallet`.
|
options will be passed to Dash Core's configure. In this case, `--disable-wallet`.
|
||||||
|
@ -78,10 +78,6 @@ if test "@host_os@" = darwin; then
|
|||||||
BREW=no
|
BREW=no
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test -z "$enable_lto" && test -n "@lto@"; then
|
|
||||||
enable_lto=yes
|
|
||||||
fi
|
|
||||||
|
|
||||||
PATH="${depends_prefix}/native/bin:${PATH}"
|
PATH="${depends_prefix}/native/bin:${PATH}"
|
||||||
PKG_CONFIG="$(which pkg-config) --static"
|
PKG_CONFIG="$(which pkg-config) --static"
|
||||||
|
|
||||||
|
@ -9,11 +9,6 @@ endif
|
|||||||
android_CFLAGS=-std=$(C_STANDARD)
|
android_CFLAGS=-std=$(C_STANDARD)
|
||||||
android_CXXFLAGS=-std=$(CXX_STANDARD)
|
android_CXXFLAGS=-std=$(CXX_STANDARD)
|
||||||
|
|
||||||
ifneq ($(LTO),)
|
|
||||||
android_CFLAGS += -flto
|
|
||||||
android_LDFLAGS += -flto
|
|
||||||
endif
|
|
||||||
|
|
||||||
android_AR=$(ANDROID_TOOLCHAIN_BIN)/llvm-ar
|
android_AR=$(ANDROID_TOOLCHAIN_BIN)/llvm-ar
|
||||||
android_RANLIB=$(ANDROID_TOOLCHAIN_BIN)/llvm-ranlib
|
android_RANLIB=$(ANDROID_TOOLCHAIN_BIN)/llvm-ranlib
|
||||||
|
|
||||||
|
@ -97,12 +97,6 @@ darwin_CFLAGS=-pipe -std=$(C_STANDARD)
|
|||||||
darwin_CXXFLAGS=-pipe -std=$(CXX_STANDARD)
|
darwin_CXXFLAGS=-pipe -std=$(CXX_STANDARD)
|
||||||
darwin_LDFLAGS=-Wl,-platform_version,macos,$(OSX_MIN_VERSION),$(OSX_SDK_VERSION)
|
darwin_LDFLAGS=-Wl,-platform_version,macos,$(OSX_MIN_VERSION),$(OSX_SDK_VERSION)
|
||||||
|
|
||||||
ifneq ($(LTO),)
|
|
||||||
darwin_CFLAGS += -flto
|
|
||||||
darwin_CXXFLAGS += -flto
|
|
||||||
darwin_LDFLAGS += -flto
|
|
||||||
endif
|
|
||||||
|
|
||||||
darwin_release_CFLAGS=-O2
|
darwin_release_CFLAGS=-O2
|
||||||
darwin_release_CXXFLAGS=$(darwin_release_CFLAGS)
|
darwin_release_CXXFLAGS=$(darwin_release_CFLAGS)
|
||||||
|
|
||||||
|
@ -1,12 +1,6 @@
|
|||||||
freebsd_CFLAGS=-pipe -std=$(C_STANDARD)
|
freebsd_CFLAGS=-pipe -std=$(C_STANDARD)
|
||||||
freebsd_CXXFLAGS=-pipe -std=$(CXX_STANDARD)
|
freebsd_CXXFLAGS=-pipe -std=$(CXX_STANDARD)
|
||||||
|
|
||||||
ifneq ($(LTO),)
|
|
||||||
freebsd_CFLAGS += -flto
|
|
||||||
freebsd_CXXFLAGS += -flto
|
|
||||||
freebsd_LDFLAGS += -flto
|
|
||||||
endif
|
|
||||||
|
|
||||||
freebsd_release_CFLAGS=-O2
|
freebsd_release_CFLAGS=-O2
|
||||||
freebsd_release_CXXFLAGS=$(freebsd_release_CFLAGS)
|
freebsd_release_CXXFLAGS=$(freebsd_release_CFLAGS)
|
||||||
|
|
||||||
|
@ -2,10 +2,6 @@ linux_CFLAGS=-pipe -std=$(C_STANDARD)
|
|||||||
linux_CXXFLAGS=-pipe -std=$(CXX_STANDARD)
|
linux_CXXFLAGS=-pipe -std=$(CXX_STANDARD)
|
||||||
|
|
||||||
ifneq ($(LTO),)
|
ifneq ($(LTO),)
|
||||||
linux_CFLAGS += -flto
|
|
||||||
linux_CXXFLAGS += -flto
|
|
||||||
linux_LDFLAGS += -flto
|
|
||||||
|
|
||||||
linux_AR = $(host_toolchain)gcc-ar
|
linux_AR = $(host_toolchain)gcc-ar
|
||||||
linux_NM = $(host_toolchain)gcc-nm
|
linux_NM = $(host_toolchain)gcc-nm
|
||||||
linux_RANLIB = $(host_toolchain)gcc-ranlib
|
linux_RANLIB = $(host_toolchain)gcc-ranlib
|
||||||
|
@ -6,10 +6,6 @@ mingw32_CFLAGS=-pipe -std=$(C_STANDARD)
|
|||||||
mingw32_CXXFLAGS=-pipe -std=$(CXX_STANDARD)
|
mingw32_CXXFLAGS=-pipe -std=$(CXX_STANDARD)
|
||||||
|
|
||||||
ifneq ($(LTO),)
|
ifneq ($(LTO),)
|
||||||
mingw32_CFLAGS += -flto
|
|
||||||
mingw32_CXXFLAGS += -flto
|
|
||||||
mingw32_LDFLAGS += -flto
|
|
||||||
|
|
||||||
mingw32_AR = $(host_toolchain)gcc-ar
|
mingw32_AR = $(host_toolchain)gcc-ar
|
||||||
mingw32_NM = $(host_toolchain)gcc-nm
|
mingw32_NM = $(host_toolchain)gcc-nm
|
||||||
mingw32_RANLIB = $(host_toolchain)gcc-ranlib
|
mingw32_RANLIB = $(host_toolchain)gcc-ranlib
|
||||||
|
@ -2,10 +2,6 @@ netbsd_CFLAGS=-pipe -std=$(C_STANDARD)
|
|||||||
netbsd_CXXFLAGS=-pipe -std=$(CXX_STANDARD)
|
netbsd_CXXFLAGS=-pipe -std=$(CXX_STANDARD)
|
||||||
|
|
||||||
ifneq ($(LTO),)
|
ifneq ($(LTO),)
|
||||||
netbsd_CFLAGS += -flto
|
|
||||||
netbsd_CXXFLAGS += -flto
|
|
||||||
netbsd_LDFLAGS += -flto
|
|
||||||
|
|
||||||
netbsd_AR = $(host_toolchain)gcc-ar
|
netbsd_AR = $(host_toolchain)gcc-ar
|
||||||
netbsd_NM = $(host_toolchain)gcc-nm
|
netbsd_NM = $(host_toolchain)gcc-nm
|
||||||
netbsd_RANLIB = $(host_toolchain)gcc-ranlib
|
netbsd_RANLIB = $(host_toolchain)gcc-ranlib
|
||||||
|
@ -1,12 +1,6 @@
|
|||||||
openbsd_CFLAGS=-pipe -std=$(C_STANDARD)
|
openbsd_CFLAGS=-pipe -std=$(C_STANDARD)
|
||||||
openbsd_CXXFLAGS=-pipe -std=$(CXX_STANDARD)
|
openbsd_CXXFLAGS=-pipe -std=$(CXX_STANDARD)
|
||||||
|
|
||||||
ifneq ($(LTO),)
|
|
||||||
openbsd_CFLAGS += -flto
|
|
||||||
openbsd_CXXFLAGS += -flto
|
|
||||||
openbsd_LDFLAGS += -flto
|
|
||||||
endif
|
|
||||||
|
|
||||||
openbsd_release_CFLAGS=-O2
|
openbsd_release_CFLAGS=-O2
|
||||||
openbsd_release_CXXFLAGS=$(openbsd_release_CFLAGS)
|
openbsd_release_CXXFLAGS=$(openbsd_release_CFLAGS)
|
||||||
|
|
||||||
|
@ -9,8 +9,8 @@ print-%: FORCE
|
|||||||
|
|
||||||
DIST_SUBDIRS = secp256k1
|
DIST_SUBDIRS = secp256k1
|
||||||
|
|
||||||
AM_LDFLAGS = $(LIBTOOL_LDFLAGS) $(HARDENED_LDFLAGS) $(GPROF_LDFLAGS) $(SANITIZER_LDFLAGS) $(LTO_LDFLAGS)
|
AM_LDFLAGS = $(LIBTOOL_LDFLAGS) $(HARDENED_LDFLAGS) $(GPROF_LDFLAGS) $(SANITIZER_LDFLAGS)
|
||||||
AM_CXXFLAGS = $(DEBUG_CXXFLAGS) $(HARDENED_CXXFLAGS) $(WARN_CXXFLAGS) $(NOWARN_CXXFLAGS) $(ERROR_CXXFLAGS) $(GPROF_CXXFLAGS) $(SANITIZER_CXXFLAGS) $(LTO_CXXFLAGS)
|
AM_CXXFLAGS = $(DEBUG_CXXFLAGS) $(HARDENED_CXXFLAGS) $(WARN_CXXFLAGS) $(NOWARN_CXXFLAGS) $(ERROR_CXXFLAGS) $(GPROF_CXXFLAGS) $(SANITIZER_CXXFLAGS)
|
||||||
AM_CPPFLAGS = $(DEBUG_CPPFLAGS) $(HARDENED_CPPFLAGS)
|
AM_CPPFLAGS = $(DEBUG_CPPFLAGS) $(HARDENED_CPPFLAGS)
|
||||||
AM_LIBTOOLFLAGS = --preserve-dup-deps
|
AM_LIBTOOLFLAGS = --preserve-dup-deps
|
||||||
PTHREAD_FLAGS = $(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
|
PTHREAD_FLAGS = $(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
|
||||||
|
Loading…
Reference in New Issue
Block a user