pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/51725: MySQL suddenly requires Sun Studio Compiler



The following reply was made to PR pkg/51725; it has been noted by GNATS.

From: coypu%SDF.ORG@localhost
To: gnats-bugs%NetBSD.org@localhost
Cc: joern.clausen%uni-bielefeld.de@localhost
Subject: Re: pkg/51725: MySQL suddenly requires Sun Studio Compiler
Date: Fri, 16 Dec 2016 16:32:20 +0000

 How about this diff?
 
 --- SunOS.cmake.orig	2016-12-16 18:29:19.575383670 +0200
 +++ SunOS.cmake	2016-12-16 18:30:20.366521370 +0200
 @@ -39,6 +39,11 @@
      IF(${CC_MINOR_VERSION} LESS 11)
        MESSAGE(FATAL_ERROR "SunStudio 12u2 or newer is required!")
      ENDIF()
 +  ELSEIF(CMAKE_COMPILER_IS_GNUCC)
 +    EXECUTE_PROCESS(COMMAND ${CMAKE_C_COMPILER} -dumpversion
 +                    OUTPUT_VARIABLE GCC_VERSION)
 +    IF(GCC_VERSION VERSION_LESS 4.4)
 +      MESSAGE(FATAL_ERROR "GCC 4.4 or newer is required!")
    ELSE()
      MESSAGE(FATAL_ERROR "Unsupported compiler!")
    ENDIF()
 
 
 


Home | Main Index | Thread Index | Old Index