tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

linker $ORIGIN processing



Is there any particularly strong reason why pkgsrc wrappers drop $ORIGIN processing from linker RPATHs?

In particular I'm experiencing :
   (logic) pop:  -Wl,-rpath,$ORIGIN/../lib
    (arg-pp-main) drop: -Wl,-rpath,$ORIGIN/../lib
    (logic) pop:  -Wl,-rpath,$ORIGIN
    (arg-pp-main) drop: -Wl,-rpath,$ORIGIN
in .work.log with _WRAPPER_DEBUG=yes

This comes from mk/wrapper/arg-pp-main:
######################################################################
# Remove rpath options that try to add relative paths to the runtime
# library search path.  This basically cleans up after lazy programmers
# who can't write Makefiles.
######################################################################
-R[!/]*|-Wl,-R[!/]*|\
-Wl,-rpath,[!/]*|-Wl,-rpath-link,[!/]*|-Wl,--rpath,[!/]*)
        $debug_log $wrapperlog "    (arg-pp-main) drop: $arg"
        argmatch=yes
        ;;

Why shouldn't the special case of '$ORIGIN*' not be supported?





Home | Main Index | Thread Index | Old Index