DBIx-MyParse
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
# identical, the THD class behaves differently in libmysqld than it does in my_parse_cc.cc, namely, the thd->command
# member is located in a different place in memory. No attempt was made to determine which compile flag causes this behavoir.
#
# Also, if we compile our stuff with DDEBUG and libmysqld.so is not compiled with DDEBUG, crap will result.
my $ccflags = `grep "^CXXFLAGS =" $makefile_path`;
$ccflags =~ s{^CXXFLAGS = }{}sio;
$ccflags =~ s{[\r\n\t]}{}sio;
$ccflags .= " -DNO_EMBEDDED_ACCESS_CHECKS ";
print "CCFLAGS = $ccflags\n";
my $libs = '-L'.$mysql_path.'/libmysql -L'.$mysql_path.'/libmysqld -lmysqld -lz -lpthread -lcrypt -lnsl -lm -lpthread -lc -lnss_files -lnss_dns -lresolv -lc -lnss_files -lnss_dns -lresolv -lrt';
print "LIBS = $libs\n";
WriteMakefile(
NAME => 'DBIx::MyParse',
VERSION_FROM => 'lib/DBIx/MyParse.pm', # finds $VERSION
ABSTRACT_FROM => 'lib/DBIx/MyParse.pm',
AUTHOR => 'Philip Stoev <philip@stoev.org>',
LIBS => qq{-L$mysql_path/libmysqld -L$mysql_path/libmysql -lmysqld -lz }.$libs,
'INC' => qq{-I. -I$mysql_path -I$mysql_path/sql -I$mysql_path/include -I$mysql_path/regex},
CCFLAGS => '-DEMBEDDED_LIBRARY -DMYSQL_SERVER -Wall '.$ccflags,
OBJECT => 'my_enum.o my_define.o my_parse_c.o my_parse_cc.o MyParse.o',
LD => 'g++',
CC => 'g++',
depend => {
'my_parse_cc.cc' => 'my_parse.h',
'my_parse_cc.cc' => 'my_define.h',
'my_parse_cc.cc' => 'my_enum.h',
'my_enum.o' => 'my_enum.c',
'my_enum.o' => 'my_enum.h',
'my_enum.0' => ' my_parse.h',
my_parse_cc.cc view on Meta::CPAN
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#define EMBEDDED_LIBRARY
#define MYSQL_SERVER
#include <sql/mysql_priv.h>
#include <mysql.h>
#include <libmysqld/embedded_priv.h>
#include <my_parse.h>
#include <my_enum.h>
#include <my_define.h>
( run in 1.338 second using v1.01-cache-2.11-cpan-71847e10f99 )