File tree 4 files changed +17
-8
lines changed
4 files changed +17
-8
lines changed Original file line number Diff line number Diff line change 1
- # Copyright (c) 2009, 2010 , Oracle and/or its affiliates. All rights reserved.
1
+ # Copyright (c) 2009, 2014 , Oracle and/or its affiliates. All rights reserved.
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
@@ -158,6 +158,7 @@ MACRO(MERGE_STATIC_LIBS TARGET OUTPUT_NAME LIBS_TO_MERGE)
158
158
IF (OSLIBS)
159
159
LIST (REMOVE_DUPLICATES OSLIBS)
160
160
TARGET_LINK_LIBRARIES (${TARGET} ${OSLIBS} )
161
+ MESSAGE (STATUS "Library ${TARGET} depends on OSLIBS ${OSLIBS} " )
161
162
ENDIF ()
162
163
163
164
# Make the generated dummy source file depended on all static input
Original file line number Diff line number Diff line change 1
- # Copyright (c) 2006, 2013 , Oracle and/or its affiliates. All rights reserved.
1
+ # Copyright (c) 2006, 2014 , Oracle and/or its affiliates. All rights reserved.
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
@@ -228,6 +228,11 @@ SET(pkglibdir ${prefix}/${INSTALL_LIBDIR})
228
228
SET (pkgplugindir ${prefix} /${INSTALL_PLUGINDIR} )
229
229
SET (localstatedir ${MYSQL_DATADIR} )
230
230
231
+ SET (RPATH_OPTION "" )
232
+ IF (CMAKE_SYSTEM_NAME STREQUAL "SunOS" )
233
+ SET (RPATH_OPTION "-R$pkglibdir" )
234
+ ENDIF ()
235
+
231
236
# some scripts use @TARGET_LINUX@
232
237
IF (CMAKE_SYSTEM_NAME MATCHES "Linux" )
233
238
SET (TARGET_LINUX "true" )
@@ -312,6 +317,9 @@ IF(WIN32)
312
317
INSTALL_SCRIPT(${CMAKE_CURRENT_BINARY_DIR} /${file} .pl COMPONENT Server_Scripts)
313
318
ENDFOREACH ()
314
319
ELSE ()
320
+ # Configure this one, for testing, but do not install it.
321
+ CONFIGURE_FILE (${CMAKE_CURRENT_SOURCE_DIR} /mysql_config.pl.in
322
+ ${CMAKE_CURRENT_BINARY_DIR} /mysql_config.pl ESCAPE_QUOTES @ONLY)
315
323
# On Unix, most of the files end up in the bin directory
316
324
SET (mysql_config_COMPONENT COMPONENT Development)
317
325
SET (BIN_SCRIPTS
Original file line number Diff line number Diff line change 1
1
# !/usr/bin/perl
2
2
# -*- cperl -*-
3
3
#
4
- # Copyright (c) 2007, 2010 , Oracle and/or its affiliates. All rights reserved.
4
+ # Copyright (c) 2007, 2014 , Oracle and/or its affiliates. All rights reserved.
5
5
#
6
6
# This program is free software; you can redistribute it and/or modify
7
7
# it under the terms of the GNU General Public License as published by
@@ -189,7 +189,7 @@ if ( $^O eq "MSWin32" )
189
189
}
190
190
else
191
191
{
192
- my $linkpath = " -L$pkglibdir " ;
192
+ my $linkpath = " -L$pkglibdir @RPATH_OPTION @ " ;
193
193
@lib_opts = ($linkpath ," -lmysqlclient" );
194
194
@lib_r_opts = ($linkpath ," -lmysqlclient_r" );
195
195
@lib_e_opts = ($linkpath ," -lmysqld" );
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
- # Copyright (c) 2000, 2010 , Oracle and/or its affiliates. All rights reserved.
2
+ # Copyright (c) 2000, 2014 , Oracle and/or its affiliates. All rights reserved.
3
3
#
4
4
# This program is free software; you can redistribute it and/or modify
5
5
# it under the terms of the GNU General Public License as published by
110
110
111
111
# Create options
112
112
# We intentionally add a space to the beginning and end of lib strings, simplifies replace later
113
- libs=" $ldflags -L$pkglibdir -lmysqlclient @ZLIB_DEPS@ @NON_THREADED_LIBS@"
113
+ libs=" $ldflags -L$pkglibdir @RPATH_OPTION@ -lmysqlclient @ZLIB_DEPS@ @NON_THREADED_LIBS@"
114
114
libs=" $libs @openssl_libs@ @STATIC_NSS_FLAGS@ "
115
- libs_r=" $ldflags -L$pkglibdir -lmysqlclient_r @ZLIB_DEPS@ @CLIENT_LIBS@ @openssl_libs@ "
116
- embedded_libs=" $ldflags -L$pkglibdir -lmysqld @LIBDL@ @ZLIB_DEPS@ @LIBS@ @WRAPLIBS@ @openssl_libs@ "
115
+ libs_r=" $ldflags -L$pkglibdir @RPATH_OPTION@ -lmysqlclient_r @ZLIB_DEPS@ @CLIENT_LIBS@ @openssl_libs@ "
116
+ embedded_libs=" $ldflags -L$pkglibdir @RPATH_OPTION@ -lmysqld @LIBDL@ @ZLIB_DEPS@ @LIBS@ @WRAPLIBS@ @openssl_libs@ "
117
117
118
118
if [ -r " $pkglibdir /libmygcc.a" ]; then
119
119
# When linking against the static library with a different version of GCC
You can’t perform that action at this time.
0 commit comments