From 8703e4611e4e5f9b88b98cb8b4eec7741d1f7001 Mon Sep 17 00:00:00 2001 From: Xavier Abellan Ecija Date: Thu, 26 Nov 2020 07:12:11 +0000 Subject: Added option conflict between --set-rpath and --add-rpath --- src/patchelf.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/patchelf.cc b/src/patchelf.cc index 2a95deb..ac30bb5 100644 --- a/src/patchelf.cc +++ b/src/patchelf.cc @@ -1939,6 +1939,9 @@ int mainWrapped(int argc, char * * argv) if (!outputFileName.empty() && fileNames.size() != 1) error("--output option only allowed with single input file"); + if (setRPath && addRPath) + error("--set-rpath option not allowed with --add-rpath"); + patchElf(); return 0; -- cgit v1.2.1