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