File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -67,11 +67,17 @@ SET(SIGNAL_WITH_VIO_SHUTDOWN 1)
67
67
68
68
# The default C++ library for SunPro is really old, and not standards compliant.
69
69
# 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.
71
72
IF (CMAKE_SYSTEM_NAME MATCHES "SunOS" )
72
73
IF (CMAKE_CXX_COMPILER_ID MATCHES "SunPro" )
73
74
IF (CMAKE_CXX_FLAGS MATCHES "-std=" )
74
75
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" )
75
81
ELSE ()
76
82
IF (SUNPRO_CXX_LIBRARY )
77
83
SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -library=${SUNPRO_CXX_LIBRARY} " )
You can’t perform that action at this time.
0 commit comments