Blame SOURCES/mod_perl-2.0.8-ldflags.patch

8df580
diff --git a/lib/Apache2/Build.pm b/lib/Apache2/Build.pm
8df580
index 2668ad2..cc48b19 100644
8df580
--- a/lib/Apache2/Build.pm
8df580
+++ b/lib/Apache2/Build.pm
8df580
@@ -1626,7 +1626,7 @@ sub dynamic_link_header_default {
8df580
     return <<'EOF';
8df580
 $(MODPERL_LIBNAME).$(MODPERL_DLEXT): $(MODPERL_PIC_OBJS)
8df580
 	$(MODPERL_RM_F) $@
8df580
-	$(MODPERL_LD) $(MODPERL_LDDLFLAGS) \
8df580
+	$(MODPERL_LD) $(MODPERL_LDDLFLAGS) -Wl,-rpath=$libdir,--enable-new-dtags \
8df580
 	$(MODPERL_AP_LIBS) \
8df580
 	$(MODPERL_PIC_OBJS) $(MODPERL_LDOPTS) \
8df580
 EOF