2024-01-22 16:21:33 +01:00
|
|
|
From 46bea350d06e9c8e1f93938ce2b2bd04a1c3bf3f Mon Sep 17 00:00:00 2001
|
2020-01-10 11:38:48 +01:00
|
|
|
From: Egbert Eich <eich@suse.com>
|
2024-01-22 16:21:33 +01:00
|
|
|
Date: Wed, 8 Jan 2020 20:56:25 +0100
|
|
|
|
Subject: [PATCH] Remove rpath from build
|
2020-01-10 11:38:48 +01:00
|
|
|
|
|
|
|
Signed-off-by: Egbert Eich <eich@suse.com>
|
|
|
|
---
|
2024-01-22 16:21:33 +01:00
|
|
|
contribs/perlapi/libslurm/perl/Makefile.PL.in | 4 ++--
|
|
|
|
contribs/perlapi/libslurmdb/perl/Makefile.PL.in | 4 ++--
|
2020-01-10 11:38:48 +01:00
|
|
|
2 files changed, 4 insertions(+), 4 deletions(-)
|
2024-01-22 16:21:33 +01:00
|
|
|
|
2020-02-28 18:43:45 +01:00
|
|
|
diff --git a/contribs/perlapi/libslurm/perl/Makefile.PL.in b/contribs/perlapi/libslurm/perl/Makefile.PL.in
|
2024-01-22 16:21:33 +01:00
|
|
|
index e8f8aff54d..b51f53f412 100644
|
2020-02-28 18:43:45 +01:00
|
|
|
--- a/contribs/perlapi/libslurm/perl/Makefile.PL.in
|
|
|
|
+++ b/contribs/perlapi/libslurm/perl/Makefile.PL.in
|
2024-01-22 16:21:33 +01:00
|
|
|
@@ -68,7 +68,7 @@ DESTDIR_BUG
|
2013-04-08 23:59:36 +02:00
|
|
|
# AIX has problems with not always having the correct
|
|
|
|
# flags so we have to add some :)
|
|
|
|
my $os = lc(`uname`);
|
2024-01-22 16:21:33 +01:00
|
|
|
-my $other_ld_flags = '-Wl,-rpath,@top_builddir@/src/api/.libs -Wl,-rpath,@libdir@';
|
2020-01-10 11:38:48 +01:00
|
|
|
+my $other_ld_flags = "-L@top_builddir@/src/api/.libs -lslurm";
|
2013-04-08 23:59:36 +02:00
|
|
|
$other_ld_flags = " -brtl -G -bnoentry -bgcbypass:1000 -bexpfull"
|
|
|
|
if $os =~ "aix";
|
|
|
|
|
2024-01-22 16:21:33 +01:00
|
|
|
@@ -79,7 +79,7 @@ WriteMakefile(
|
2013-04-08 23:59:36 +02:00
|
|
|
($] >= 5.005 ? ## Add these new keywords supported since 5.005
|
|
|
|
(ABSTRACT_FROM => 'lib/Slurm.pm', # retrieve abstract from module
|
|
|
|
AUTHOR => 'Hongjia Cao <hjcao@nudt.edu.cn>') : ()),
|
2024-01-22 16:21:33 +01:00
|
|
|
- LIBS => ['-L@top_builddir@/src/api/.libs -L@libdir@ -lslurm'], # e.g., '-lm'
|
2013-04-08 23:59:36 +02:00
|
|
|
+ LIBS => ["-L@prefix@/lib -lslurm"], # e.g., '-lm'
|
|
|
|
DEFINE => '', # e.g., '-DHAVE_SOMETHING'
|
|
|
|
INC => "-I. -I@top_srcdir@ -I@top_srcdir@/contribs/perlapi/common -I@top_builddir@",
|
|
|
|
# Un-comment this if you add C files to link with later:
|
2020-02-28 18:43:45 +01:00
|
|
|
diff --git a/contribs/perlapi/libslurmdb/perl/Makefile.PL.in b/contribs/perlapi/libslurmdb/perl/Makefile.PL.in
|
2024-01-22 16:21:33 +01:00
|
|
|
index 4fb38b9725..148efa6e82 100644
|
2020-02-28 18:43:45 +01:00
|
|
|
--- a/contribs/perlapi/libslurmdb/perl/Makefile.PL.in
|
|
|
|
+++ b/contribs/perlapi/libslurmdb/perl/Makefile.PL.in
|
2024-01-22 16:21:33 +01:00
|
|
|
@@ -68,7 +68,7 @@ DESTDIR_BUG
|
2013-04-08 23:59:36 +02:00
|
|
|
# AIX has problems with not always having the correct
|
|
|
|
# flags so we have to add some :)
|
|
|
|
my $os = lc(`uname`);
|
2024-01-22 16:21:33 +01:00
|
|
|
-my $other_ld_flags = '-Wl,-rpath,@top_builddir@/src/db_api/.libs -Wl,-rpath,@libdir@';
|
2018-09-24 11:37:13 +02:00
|
|
|
+my $other_ld_flags = "-L@top_builddir@/src/api/.libs -lslurm";
|
2013-04-08 23:59:36 +02:00
|
|
|
$other_ld_flags = " -brtl -G -bnoentry -bgcbypass:1000 -bexpfull"
|
|
|
|
if $os =~ "aix";
|
|
|
|
|
2024-01-22 16:21:33 +01:00
|
|
|
@@ -79,7 +79,7 @@ WriteMakefile(
|
2013-04-08 23:59:36 +02:00
|
|
|
($] >= 5.005 ? ## Add these new keywords supported since 5.005
|
|
|
|
(ABSTRACT_FROM => 'Slurmdb.pm', # retrieve abstract from module
|
|
|
|
AUTHOR => 'Don Lipari <lipari@llnl.gov>') : ()),
|
2024-01-22 16:21:33 +01:00
|
|
|
- LIBS => ['-L@top_builddir@/src/api/.libs -L@libdir@ -lslurm'], # e.g., '-lm'
|
|
|
|
+ LIBS => ["-L@prefix@/lib -lslurm"], # e.g., '-lm'
|
2013-04-08 23:59:36 +02:00
|
|
|
DEFINE => '', # e.g., '-DHAVE_SOMETHING'
|
|
|
|
INC => "-I. -I@top_srcdir@ -I@top_srcdir@/contribs/perlapi/common -I@top_builddir@",
|
|
|
|
# Un-comment this if you add C files to link with later:
|
2024-01-22 16:21:33 +01:00
|
|
|
--
|
|
|
|
2.42.1
|
|
|
|
|