Skip to content
This repository was archived by the owner on Oct 5, 2021. It is now read-only.

Commit d730927

Browse files
author
Tor Didriksen
committed
Bug#22932576 MYSQL5.6 DOES NOT BUILD ON SOLARIS12
Followup patch: extend CMAKE_SHARED_LIBRARY_CXX_FLAGS with necessary libraries.
1 parent e4a1c91 commit d730927

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

configure.cmake

+7-1
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,17 @@ SET(SIGNAL_WITH_VIO_SHUTDOWN 1)
6767

6868
# The default C++ library for SunPro is really old, and not standards compliant.
6969
# http://www.oracle.com/technetwork/server-storage/solaris10/cmp-stlport-libcstd-142559.html
70-
# Use stlport rather than Rogue Wave.
70+
# Use stlport rather than Rogue Wave,
71+
# unless otherwise specified on command line.
7172
IF(CMAKE_SYSTEM_NAME MATCHES "SunOS")
7273
IF(CMAKE_CXX_COMPILER_ID MATCHES "SunPro")
7374
IF(CMAKE_CXX_FLAGS MATCHES "-std=")
7475
ADD_DEFINITIONS(-D__MATHERR_RENAME_EXCEPTION)
76+
SET(CMAKE_SHARED_LIBRARY_C_FLAGS
77+
"${CMAKE_SHARED_LIBRARY_C_FLAGS} -lc")
78+
SET(CMAKE_SHARED_LIBRARY_CXX_FLAGS
79+
"${CMAKE_SHARED_LIBRARY_CXX_FLAGS} -lstdc++ -lgcc_s -lCrunG3 -lc")
80+
SET(QUOTED_CMAKE_CXX_LINK_FLAGS "-lstdc++ -lgcc_s -lCrunG3 -lc")
7581
ELSE()
7682
IF(SUNPRO_CXX_LIBRARY)
7783
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -library=${SUNPRO_CXX_LIBRARY}")

0 commit comments

Comments
 (0)