mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-20 00:21:35 +00:00
Fix build on GCC-based architectures by removing default assumption that
FreeBSD == clang. Approved by: portmgr (tier-2 blanket)
This commit is contained in:
parent
624653f073
commit
c3c004771c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=489183
@ -1,9 +1,11 @@
|
||||
--- cmake/os/FreeBSD.cmake.orig 2018-10-04 05:48:22 UTC
|
||||
+++ cmake/os/FreeBSD.cmake
|
||||
@@ -30,6 +30,20 @@ IF(NOT FORCE_UNSUPPORTED_COMPILER)
|
||||
@@ -30,12 +30,26 @@ IF(NOT FORCE_UNSUPPORTED_COMPILER)
|
||||
IF(NOT HAVE_SUPPORTED_CLANG_VERSION)
|
||||
MESSAGE(FATAL_ERROR "Clang 3.3 or newer is required!")
|
||||
ENDIF()
|
||||
- ELSE()
|
||||
- MESSAGE(FATAL_ERROR "Unsupported compiler!")
|
||||
+ CHECK_C_SOURCE_RUNS("
|
||||
+ int main()
|
||||
+ {
|
||||
@ -18,10 +20,9 @@
|
||||
+ IF(GCC_VERSION VERSION_LESS 4.4)
|
||||
+ MESSAGE(FATAL_ERROR "GCC 4.4 or newer is required!")
|
||||
+ ENDIF()
|
||||
ELSE()
|
||||
MESSAGE(FATAL_ERROR "Unsupported compiler!")
|
||||
ENDIF()
|
||||
@@ -38,4 +52,6 @@ ENDIF()
|
||||
ENDIF()
|
||||
|
||||
# Should not be needed any more, but kept for easy resurrection if needed
|
||||
# #Legacy option, maybe not needed anymore , taken as is from autotools build
|
||||
# ADD_DEFINITIONS(-DNET_RETRY_COUNT=1000000)
|
||||
|
Loading…
Reference in New Issue
Block a user