|
1 |
| - |
2 |
| -# Copyright (C) 2009 Sun Microsystems,Inc |
| 1 | +# Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved. |
3 | 2 | #
|
4 | 3 | # This program is free software; you can redistribute it and/or modify
|
5 | 4 | # it under the terms of the GNU General Public License as published by
|
@@ -67,15 +66,7 @@ IF(CMAKE_COMPILER_IS_GNUCXX)
|
67 | 66 | # MySQL "canonical" GCC flags. At least -fno-rtti flag affects
|
68 | 67 | # ABI and cannot be simply removed.
|
69 | 68 | SET(CMAKE_CXX_FLAGS
|
70 |
| - "${CMAKE_CXX_FLAGS} -fno-implicit-templates -fno-exceptions -fno-rtti") |
71 |
| - IF(CMAKE_CXX_FLAGS) |
72 |
| - STRING(REGEX MATCH "fno-implicit-templates" NO_IMPLICIT_TEMPLATES |
73 |
| - ${CMAKE_CXX_FLAGS}) |
74 |
| - IF (NO_IMPLICIT_TEMPLATES) |
75 |
| - SET(HAVE_EXPLICIT_TEMPLATE_INSTANTIATION TRUE) |
76 |
| - ENDIF() |
77 |
| - ENDIF() |
78 |
| - |
| 69 | + "${CMAKE_CXX_FLAGS} -fno-exceptions -fno-rtti") |
79 | 70 | IF (CMAKE_EXE_LINKER_FLAGS MATCHES " -static "
|
80 | 71 | OR CMAKE_EXE_LINKER_FLAGS MATCHES " -static$")
|
81 | 72 | SET(HAVE_DLOPEN FALSE CACHE "Disable dlopen due to -static flag" FORCE)
|
@@ -350,7 +341,6 @@ CHECK_FUNCTION_EXISTS (fseeko HAVE_FSEEKO)
|
350 | 341 | CHECK_FUNCTION_EXISTS (fsync HAVE_FSYNC)
|
351 | 342 | CHECK_FUNCTION_EXISTS (getcwd HAVE_GETCWD)
|
352 | 343 | CHECK_FUNCTION_EXISTS (gethostbyaddr_r HAVE_GETHOSTBYADDR_R)
|
353 |
| -CHECK_FUNCTION_EXISTS (gethostbyname_r HAVE_GETHOSTBYNAME_R) |
354 | 344 | CHECK_FUNCTION_EXISTS (gethrtime HAVE_GETHRTIME)
|
355 | 345 | CHECK_FUNCTION_EXISTS (getnameinfo HAVE_GETNAMEINFO)
|
356 | 346 | CHECK_FUNCTION_EXISTS (getpass HAVE_GETPASS)
|
@@ -921,44 +911,6 @@ CHECK_CXX_SOURCE_COMPILES("
|
921 | 911 | "
|
922 | 912 | HAVE_SOLARIS_STYLE_GETHOST)
|
923 | 913 |
|
924 |
| -CHECK_CXX_SOURCE_COMPILES(" |
925 |
| - #undef inline |
926 |
| - #if !defined(SCO) && !defined(__osf__) && !defined(_REENTRANT) |
927 |
| - #define _REENTRANT |
928 |
| - #endif |
929 |
| - #include <pthread.h> |
930 |
| - #include <sys/types.h> |
931 |
| - #include <sys/socket.h> |
932 |
| - #include <netinet/in.h> |
933 |
| - #include <arpa/inet.h> |
934 |
| - #include <netdb.h> |
935 |
| - int main() |
936 |
| - { |
937 |
| - int ret = gethostbyname_r((const char *) 0, |
938 |
| - (struct hostent*) 0, (char*) 0, 0, (struct hostent **) 0, (int *) 0); |
939 |
| - return 0; |
940 |
| - }" |
941 |
| - HAVE_GETHOSTBYNAME_R_GLIBC2_STYLE) |
942 |
| - |
943 |
| -CHECK_CXX_SOURCE_COMPILES(" |
944 |
| - #undef inline |
945 |
| - #if !defined(SCO) && !defined(__osf__) && !defined(_REENTRANT) |
946 |
| - #define _REENTRANT |
947 |
| - #endif |
948 |
| - #include <pthread.h> |
949 |
| - #include <sys/types.h> |
950 |
| - #include <sys/socket.h> |
951 |
| - #include <netinet/in.h> |
952 |
| - #include <arpa/inet.h> |
953 |
| - #include <netdb.h> |
954 |
| - int main() |
955 |
| - { |
956 |
| - int ret = gethostbyname_r((const char *) 0, (struct hostent*) 0, (struct hostent_data*) 0); |
957 |
| - return 0; |
958 |
| - }" |
959 |
| - HAVE_GETHOSTBYNAME_R_RETURN_INT) |
960 |
| - |
961 |
| - |
962 | 914 | # Use of ALARMs to wakeup on timeout on sockets
|
963 | 915 | #
|
964 | 916 | # This feature makes use of a mutex and is a scalability hog we
|
|
0 commit comments