How to compile can pass RPATH and RUNPATH security checks

I try to modify line 4527 of the SConstruct script file to achieve my purpose, if I modify the parameter ‘-Wl,–enable-new-dtags’ to ‘-W,–disable-new-dtags’ like this The RUNPATH problem cannot be checked, but the RPATH will appear. If I remove this line, the RPATH cannot be checked, but the RUNPATH problem will appear.How to compile can pass RPATH and RUNPATH security checks.