188ee2f
diff --git a/contribs/perlapi/libslurm/perl/Makefile.PL.in b/contribs/perlapi/libslurm/perl/Makefile.PL.in
188ee2f
index fcae43796d..34c1ad1411 100644
188ee2f
--- a/contribs/perlapi/libslurm/perl/Makefile.PL.in
188ee2f
+++ b/contribs/perlapi/libslurm/perl/Makefile.PL.in
188ee2f
@@ -77,7 +77,7 @@ DESTDIR_BUG
9be8f28
 # AIX has problems with not always having the correct
9be8f28
 # flags so we have to add some :)
9be8f28
 my $os = lc(`uname`);
9be8f28
-my $other_ld_flags = "-Wl,-rpath,@top_builddir@/src/api/.libs -Wl,-rpath,@prefix@/lib";
db5c178
+my $other_ld_flags = "";
9be8f28
 $other_ld_flags = " -brtl -G -bnoentry -bgcbypass:1000 -bexpfull"
9be8f28
 	if $os =~ "aix";
9be8f28
 
188ee2f
diff --git a/contribs/perlapi/libslurmdb/perl/Makefile.PL.in b/contribs/perlapi/libslurmdb/perl/Makefile.PL.in
188ee2f
index 2db028c113..d143c20190 100644
188ee2f
--- a/contribs/perlapi/libslurmdb/perl/Makefile.PL.in
188ee2f
+++ b/contribs/perlapi/libslurmdb/perl/Makefile.PL.in
188ee2f
@@ -76,7 +76,7 @@ DESTDIR_BUG
9be8f28
 # AIX has problems with not always having the correct
9be8f28
 # flags so we have to add some :)
9be8f28
 my $os = lc(`uname`);
9be8f28
-my $other_ld_flags = "-Wl,-rpath,@top_builddir@/src/db_api/.libs -Wl,-rpath,@prefix@/lib";
db5c178
+my $other_ld_flags = "";
9be8f28
 $other_ld_flags = " -brtl -G -bnoentry -bgcbypass:1000 -bexpfull"
9be8f28
 	if $os =~ "aix";
9be8f28