mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[8289] Fixed build problem with some old mysql versions at Unix/Linux.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
3150ae9cbc
commit
7af48902f1
2 changed files with 6 additions and 1 deletions
|
|
@ -138,6 +138,11 @@ AC_PATH_PROGS(MYSQL_CONFIG, mysql_config, mysql_config, $PATH)
|
|||
MYSQL_INCLUDES="`$MYSQL_CONFIG --cflags`"
|
||||
MYSQL_LIBS="`$MYSQL_CONFIG --libs_r`"
|
||||
CXXFLAGS="-DDO_MYSQL $CXXFLAGS"
|
||||
# Workaround for --as-needed linker flag that comes sometimes from mysql
|
||||
if echo $MYSQL_LIBS|grep "\-Wl,--as-needed" > /dev/null; then
|
||||
MYSQL_LIBS=`echo $MYSQL_LIBS|sed -e "s/-Wl,--as-needed//"`;
|
||||
AC_MSG_WARN([Your mysql libs contains -Wl,--as-needed, this is not good, problem fixed in more recent mysql versions])
|
||||
fi
|
||||
fi
|
||||
else
|
||||
AC_MSG_RESULT($DO_MYSQL)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "8288"
|
||||
#define REVISION_NR "8289"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue