1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00

databases/mysql57-client: Fix build with 10.x default compiler/linker

The upstream seems merged our local-patches but
added a -R flag to its `c++` [actually ld] command.
The -R $DIR is like -rpath on 11.x and CURRENT bases but not on 10.x
We then use -rpath to make sure it works on all supported bases.

Reported by:	John W. O'Brien <john@saltant.com>
Sponsored by:	Netzkommune GmbH
This commit is contained in:
Mahdi Mokhtari 2018-04-22 16:24:08 +00:00
parent b8754765ff
commit 2a7c735229
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=468035
2 changed files with 12 additions and 1 deletions

View File

@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= mysql
PORTREVISION= 0
PORTREVISION= 1
PKGNAMESUFFIX= 57-client
COMMENT= Multithreaded SQL database (client)

View File

@ -0,0 +1,11 @@
--- libmysql/authentication_ldap/CMakeLists.txt.orig 2018-03-04 13:40:40 UTC
+++ libmysql/authentication_ldap/CMakeLists.txt
@@ -54,7 +54,7 @@ ENDIF()
IF (CMAKE_SYSTEM_NAME MATCHES "SunOS")
SET(SASL_LIBRARY "sasl")
ELSEIF(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
- SET(SASL_LIBRARY "-L/usr/local/lib -R/usr/local/lib -lsasl2")
+ SET(SASL_LIBRARY "-L/usr/local/lib -rpath /usr/local/lib -lsasl2")
ELSE()
SET(SASL_LIBRARY "sasl2")
ENDIF ()