pcp/0002-Remove-CPAN-rpaths.patch

52 lines
2.2 KiB
Diff

From cc6ffae33eef2fd1b595dfda72defed17aae89c4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= <kkaempf@suse.de>
Date: Mon, 16 May 2022 17:32:55 +0200
Subject: [PATCH] build: remove CPAN rpaths
Acked-by: David Disseldorp <ddiss@suse.de>
---
src/perl/LogImport/Makefile.PL | 2 +-
src/perl/MMV/Makefile.PL | 2 +-
src/perl/PMDA/Makefile.PL | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
Index: pcp-6.2.0/src/perl/LogImport/Makefile.PL
===================================================================
--- pcp-6.2.0.orig/src/perl/LogImport/Makefile.PL
+++ pcp-6.2.0/src/perl/LogImport/Makefile.PL
@@ -15,7 +15,7 @@ if ($ENV{TARGET_OS} eq "mingw") {
else {
$ldfrom = "LogImport.o",
$inc = "-I$ENV{PCP_TOPDIR}/src/include/pcp -I/usr/include/pcp";
- $libs = ["-L$ENV{PCP_TOPDIR}/src/libpcp/src -L$ENV{PCP_TOPDIR}/src/libpcp_import/src -lpcp_import -lpcp"];
+ $libs = ["-lpcp_import -lpcp"];
}
if ($ENV{TARGET_OS} eq "darwin") {
$lddlflags = "-bundle -undefined dynamic_lookup";
Index: pcp-6.2.0/src/perl/MMV/Makefile.PL
===================================================================
--- pcp-6.2.0.orig/src/perl/MMV/Makefile.PL
+++ pcp-6.2.0/src/perl/MMV/Makefile.PL
@@ -15,7 +15,7 @@ if ($ENV{TARGET_OS} eq "mingw") {
else {
$ldfrom = "MMV.o";
$inc = "-I$ENV{PCP_TOPDIR}/src/include/pcp -I/usr/include/pcp";
- $libs = ["-L$ENV{PCP_TOPDIR}/src/libpcp_mmv/src -L$ENV{PCP_TOPDIR}/src/libpcp/src -lpcp_mmv -lpcp"];
+ $libs = ["-lpcp_mmv -lpcp"];
}
if ($ENV{TARGET_OS} eq "darwin") {
$lddlflags = "-bundle -undefined dynamic_lookup";
Index: pcp-6.2.0/src/perl/PMDA/Makefile.PL
===================================================================
--- pcp-6.2.0.orig/src/perl/PMDA/Makefile.PL
+++ pcp-6.2.0/src/perl/PMDA/Makefile.PL
@@ -15,7 +15,7 @@ if ($ENV{TARGET_OS} eq "mingw") {
else {
$ldfrom = "local.o PMDA.o";
$inc = "-I$ENV{PCP_TOPDIR}/src/include/pcp -I/usr/include/pcp";
- $libs = ["-L$ENV{PCP_TOPDIR}/src/libpcp_pmda/src -L$ENV{PCP_TOPDIR}/src/libpcp/src -lpcp_pmda -lpcp"];
+ $libs = ["-lpcp_pmda -lpcp"];
}
if ($ENV{TARGET_OS} eq "darwin") {
$lddlflags = "-bundle -undefined dynamic_lookup";