Commit 3c9ba020 authored by unknown's avatar unknown

udf_example.c, udf.test, Makefile.am:

  Converted "udf_example.cc" to C, avoids C++ runtime lib dependency (bug#21336)


sql/Makefile.am:
  "udf_example.cc" converted to C, avoids C++ runtime lib dependency (bug#21336)
mysql-test/t/udf.test:
  "udf_example.cc" converted to C, avoids C++ runtime lib dependency (bug#21336)
sql/udf_example.c:
  Changes to be strict ansi, except long long
parent 8c4ba968
--source include/have_udf.inc --source include/have_udf.inc
# #
# To run this tests the "sql/udf_example.cc" need to be compiled into # To run this tests the "sql/udf_example.c" need to be compiled into
# udf_example.so and LD_LIBRARY_PATH should be setup to point out where # udf_example.so and LD_LIBRARY_PATH should be setup to point out where
# the library are. # the library are.
# #
......
...@@ -116,7 +116,7 @@ DEFS = -DMYSQL_SERVER \ ...@@ -116,7 +116,7 @@ DEFS = -DMYSQL_SERVER \
@DEFS@ @DEFS@
BUILT_SOURCES = sql_yacc.cc sql_yacc.h lex_hash.h BUILT_SOURCES = sql_yacc.cc sql_yacc.h lex_hash.h
EXTRA_DIST = udf_example.cc $(BUILT_SOURCES) EXTRA_DIST = $(BUILT_SOURCES)
DISTCLEANFILES = lex_hash.h DISTCLEANFILES = lex_hash.h
AM_YFLAGS = -d AM_YFLAGS = -d
...@@ -155,7 +155,7 @@ lex_hash.h: gen_lex_hash$(EXEEXT) ...@@ -155,7 +155,7 @@ lex_hash.h: gen_lex_hash$(EXEEXT)
# For testing of udf_example.so # For testing of udf_example.so
noinst_LTLIBRARIES= udf_example.la noinst_LTLIBRARIES= udf_example.la
udf_example_la_SOURCES= udf_example.cc udf_example_la_SOURCES= udf_example.c
udf_example_la_LDFLAGS= -module -rpath $(pkglibdir) udf_example_la_LDFLAGS= -module -rpath $(pkglibdir)
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment