Enable SSE if necessary

(cherry picked from commit e20493b1e4)
This commit is contained in:
Martin 2017-02-19 16:19:12 +01:00
parent ae615bd4a3
commit 2a7d8e29b1
4 changed files with 5 additions and 4 deletions

View File

@ -35,8 +35,8 @@ if !EMBEDDED_CRYPTOPP
urbackupclientbackend_LDADD += $(CRYPTOPP_LIBS)
else
urbackupclientbackend_CXXFLAGS += -DCRYPTOPP_INCLUDE_PREFIX=cryptoplugin -DCRYPTOPP_NO_UNALIGNED_DATA_ACCESS -DCRYPTOPP_NO_BACKWARDS_COMPATIBILITY_562
ifeq ($(TARGET_CPU),x86)
urbackupsrv_CXXFLAGS += -msse -msse2
if TARGET_CPU_IS_X64
urbackupclientbackend_CXXFLAGS += -msse -msse2
endif
endif

View File

@ -45,7 +45,7 @@ if !EMBEDDED_CRYPTOPP
urbackupsrv_LDADD += $(CRYPTOPP_LIBS)
else
urbackupsrv_CXXFLAGS += -DCRYPTOPP_INCLUDE_PREFIX=cryptoplugin -DCRYPTOPP_NO_UNALIGNED_DATA_ACCESS -DCRYPTOPP_NO_BACKWARDS_COMPATIBILITY_562
ifeq ($(TARGET_CPU),x86)
if TARGET_CPU_IS_X64
urbackupsrv_CXXFLAGS += -msse -msse2
endif
endif

View File

@ -30,6 +30,7 @@ AM_CONDITIONAL(CLIENT_UPDATE, test "x$enable_clientupdate" = xyes)
AC_ARG_ENABLE([embedded-cryptopp],
AS_HELP_STRING([--enable-embedded-cryptopp], [Compile and use Crypto++ 5.6.3 included with the source distribution.]))
AM_CONDITIONAL(EMBEDDED_CRYPTOPP, test "x$enable_embedded_cryptopp" = xyes)
AM_CONDITIONAL(TARGET_CPU_IS_X64, test "x$TARGET_CPU" = xx86)
# Checks for programs.
AC_PROG_CXX

View File

@ -26,7 +26,7 @@ AM_CONDITIONAL(WITH_FORTIFY, test "x$enable_fortify" != xno)
AC_ARG_ENABLE([embedded-cryptopp],
AS_HELP_STRING([--enable-embedded-cryptopp], [Compile and use Crypto++ 5.6.3 included with the source distribution.]))
AM_CONDITIONAL(EMBEDDED_CRYPTOPP, test "x$enable_embedded_cryptopp" = xyes)
AM_CONDITIONAL(TARGET_CPU_IS_X64, test "x$TARGET_CPU" = xx86)
# Checks for programs.