Changeset 2378:fffdfcfbf11b in roaraudio


Ignore:
Timestamp:
08/16/09 03:09:15 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added support for --load and load libroar via PRELOAD

Location:
roarclients
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • roarclients/Makefile

    r2282 r2378  
    8787roarify.sht: 
    8888roarify: roarify.sht 
    89         sed 's#%%%PREFIX_COMP%%%#$(PREFIX_COMP)#g' < roarify.sht > roarify 
     89        sed 's#%%%PREFIX_COMP%%%#$(PREFIX_COMP)#g; s#%%%PREFIX_LIB%%%#$(PREFIX_LIB)#g;' < roarify.sht > roarify 
    9090        chmod +rx roarify 
  • roarclients/roarify.sht

    r1943 r2378  
    1111 echo " --help               - This help" 
    1212 echo " --server SERVER      - Sets server to SERVER" 
     13 echo " --load   MODULE      - Force loading of MODULE" 
    1314} 
    14  
    15 export LD_LIBRARY_PATH='%%%PREFIX_COMP%%%' 
    1615 
    1716CMD=false 
     
    3231   shift; 
    3332  ;; 
     33  '--load') 
     34   LD_PRELOAD="%%%PREFIX_COMP%%%/lib$1.so $LD_PRELOAD" 
     35   shift; 
     36  ;; 
    3437  '--help'|'-h') 
    3538   usage; 
     
    4851done 
    4952 
     53export LD_PRELOAD="%%%PREFIX_LIB%%%/libroar.so $LD_PRELOAD" 
     54export LD_LIBRARY_PATH='%%%PREFIX_COMP%%%'" $LD_LIBRARY_PATH" 
     55 
    5056exec -- "$CMD" "$@" 
    5157 
Note: See TracChangeset for help on using the changeset viewer.