diff options
Diffstat (limited to 'math/libpgmath/files/patch-lib_CMakeLists.txt')
-rw-r--r-- | math/libpgmath/files/patch-lib_CMakeLists.txt | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/math/libpgmath/files/patch-lib_CMakeLists.txt b/math/libpgmath/files/patch-lib_CMakeLists.txt index 3a01da370239..4f91d3a45be2 100644 --- a/math/libpgmath/files/patch-lib_CMakeLists.txt +++ b/math/libpgmath/files/patch-lib_CMakeLists.txt @@ -1,4 +1,4 @@ ---- lib/CMakeLists.txt.orig 2019-10-20 13:54:36 UTC +--- lib/CMakeLists.txt.orig 2019-10-09 20:28:35 UTC +++ lib/CMakeLists.txt @@ -15,6 +15,11 @@ # @@ -12,14 +12,19 @@ set(PROCESSOR ${LIBPGMATH_SYSTEM_PROCESSOR}) if(${LIBPGMATH_WITH_GENERIC} OR (NOT ${LIBPGMATH_SYSTEM_PROCESSOR} MATCHES "x86_64|aarch64")) set(PROCESSOR "generic") -@@ -23,6 +28,10 @@ endif() - find_program(SH_PROGRAM NAMES sh bash) +@@ -30,13 +35,13 @@ if(${LIBPGMATH_SYSTEM_PROCESSOR} MATCHES "x86_64" AND + set(DEFINITIONS_L1 + HOST_LINUX LINUX LINUX86 LINUX8664 MAXCPUS=256 MAXCPUSL=8 MAXCPUSR=8 + TARGET_LINUX TARGET_LINUX_X86 TARGET_LINUX_X8664 TARGET_X86 TARGET_X8664 +- __gnu_linux__ PG_PIC) ++ __gnu_linux__ linux PG_PIC) + set(FLAGS_L1 "-m64 -O3 ") - set_property(GLOBAL APPEND PROPERTY "TARGET_OBJECTS") -+ -+if ("${LIBPGMATH_SYSTEM_NAME}" STREQUAL "FreeBSD") -+ set(LIBPGMATH_SYSTEM_NAME "Linux") -+endif () + set(DEFINITIONS_L2 + LINUX LINUX86 LINUX8664 MAXCPUS=256 MAXCPUSL=8 MAXCPUSR=8 __gnu_linux__ + TARGET_LINUX TARGET_LINUX_X86 TARGET_LINUX_X8664 TARGET_X86 TARGET_X8664 +- PG_PIC) ++ linux PG_PIC) + set(FLAGS_L2 "-m64 -O3 -mtune=core-avx2 -march=core-avx2 ") - if(${LIBPGMATH_SYSTEM_PROCESSOR} MATCHES "x86_64" AND NOT ${LIBPGMATH_WITH_GENERIC}) - if(${LIBPGMATH_SYSTEM_NAME} MATCHES "Linux") + # common |