[packages] ulogd: fix bad rpath option
authorJo-Philipp Wich <jow@openwrt.org>
Sat, 18 Dec 2010 15:08:07 +0000 (15:08 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sat, 18 Dec 2010 15:08:07 +0000 (15:08 +0000)
SVN-Revision: 24667

net/ulogd/patches/003-fix-bad-rpath.patch [new file with mode: 0644]

diff --git a/net/ulogd/patches/003-fix-bad-rpath.patch b/net/ulogd/patches/003-fix-bad-rpath.patch
new file mode 100644 (file)
index 0000000..0a2e646
--- /dev/null
@@ -0,0 +1,33 @@
+--- a/configure
++++ b/configure
+@@ -1728,7 +1728,7 @@ else
+ EOF
+         MYSQLINCLUDES=`$d/mysql_config --include`
+-        MYSQLLIBS=`$d/mysql_config --libs`
++        MYSQLLIBS=`$d/mysql_config --libs | sed 's/-rdynamic//'`
+       DATABASE_DIR="${DATABASE_DIR} mysql"
+--- a/configure.in
++++ b/configure.in
+@@ -60,7 +60,7 @@ then
+ else
+         AC_DEFINE(HAVE_MYSQL)
+         MYSQLINCLUDES=`$d/mysql_config --include`
+-        MYSQLLIBS=`$d/mysql_config --libs`
++        MYSQLLIBS=`$d/mysql_config --libs | $(SED) 's/-rdynamic//'`
+       DATABASE_DIR="${DATABASE_DIR} mysql"
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -63,7 +63,7 @@ recurse: 
+       @for d in $(SUBDIRS); do if ! make -C $$d; then exit 1; fi; done
+ ulogd: ulogd.c $(LIBIPULOG) include/ulogd/ulogd.h conffile/conffile.o $(LIBIPULOG)/libipulog.a ulogd.conf
+-      $(CC) $(CFLAGS) -rdynamic $< conffile/conffile.o $(LIBIPULOG)/libipulog.a -o $@ $(LIBS)
++      $(CC) $(CFLAGS) $< conffile/conffile.o $(LIBIPULOG)/libipulog.a -o $@ $(LIBS)
+ edit = sed -e 's,@libdir\@,$(ULOGD_LIB_PATH),g'