Skip to content

Commit 8703e46

Browse files
committed
Added option conflict between --set-rpath and --add-rpath
1 parent 055802e commit 8703e46

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/patchelf.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1939,6 +1939,9 @@ int mainWrapped(int argc, char * * argv)
19391939
if (!outputFileName.empty() && fileNames.size() != 1)
19401940
error("--output option only allowed with single input file");
19411941

1942+
if (setRPath && addRPath)
1943+
error("--set-rpath option not allowed with --add-rpath");
1944+
19421945
patchElf();
19431946

19441947
return 0;

0 commit comments

Comments
 (0)