trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bri...@apache.org
Subject [2/2] git commit: Fix mysql remap's build files
Date Mon, 15 Sep 2014 21:46:31 GMT
Fix mysql remap's build files

The current build files produce a binary that has undefined symbols
(relating to the modules in lib/). To include these symbols, need to use
the `-no-undefined` flag.

Other structural changes make mysql remap look like other modules that
use a lib directory.


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/09ef3a3f
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/09ef3a3f
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/09ef3a3f

Branch: refs/heads/master
Commit: 09ef3a3fd710cf9993efba729c7f7ae8095f3799
Parents: 7229900
Author: Stephen Holsapple <sholsapp@gmail.com>
Authored: Mon Sep 15 14:33:30 2014 -0700
Committer: Stephen Holsapple <sholsapp@gmail.com>
Committed: Mon Sep 15 14:33:30 2014 -0700

----------------------------------------------------------------------
 plugins/experimental/mysql_remap/Makefile.am | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/09ef3a3f/plugins/experimental/mysql_remap/Makefile.am
----------------------------------------------------------------------
diff --git a/plugins/experimental/mysql_remap/Makefile.am b/plugins/experimental/mysql_remap/Makefile.am
index afcd540..70d5379 100644
--- a/plugins/experimental/mysql_remap/Makefile.am
+++ b/plugins/experimental/mysql_remap/Makefile.am
@@ -17,5 +17,21 @@
 include $(top_srcdir)/build/plugins.mk
 
 pkglib_LTLIBRARIES = mysql_remap.la
+noinst_LTLIBRARIES = libmysql_remap.la
+
+AM_CPPFLAGS += \
+  -I$(srcdir)/lib
+
+if BUILD_HAVE_LIBCXX
+AM_CXXFLAGS += -stdlib=libc++
+endif
+
+
 mysql_remap_la_SOURCES = mysql_remap.cc
-mysql_remap_la_LDFLAGS = $(TS_PLUGIN_LDFLAGS) $(LIB_MYSQLCLIENT)
+
+libmysql_remap_la_SOURCES = \
+  lib/dictionary.cc \
+  lib/iniparser.cc
+
+mysql_remap_la_LDFLAGS = $(TS_PLUGIN_LDFLAGS) $(LIB_MYSQLCLIENT) -no-undefined
+mysql_remap_la_LIBADD = libmysql_remap.la


Mime
View raw message