packages/net/ulogd/patches/003-fix-bad-rpath.patch
jow ab203870ac [packages] ulogd: fix bad rpath option
git-svn-id: svn://svn.openwrt.org/openwrt/packages@24667 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-12-18 15:08:07 +00:00

34 lines
1.0 KiB
Diff

--- 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'