RFR (S): 7192916: Hotspot development launcher should use DYLD_LIBRARY_PATH on OS X
Nils Loodin
nils.loodin at oracle.com
Tue Aug 21 06:51:56 PDT 2012
>> Although, since the logic is very similar, perhaps it should be a common 'logic bloc', and the 'if darwin' statement only set's if it's LD_LIBRARY_PATH or DYLD_LIBRARY_PATH that gets
>> That would be good, except the common "logic block" needs to see if either LD_LIBRARY_PATH or DYLD_LIBRARY_PATH is set. But I could change it to something like this:
>>
>> OS=`uname -s`
>> if [ "${OS}" = "Darwin" ]
>> then
>> LIB_PATH=$DYLD_LIBRARY_PATH
>> else
>> LIB_PATH=$LD_LIBRARY_PATH
>> fi
>>
>> if [ -z "$LIB_PATH" ]
>> then
>> LIB_PATH="$SBP"
>> else
>> LIB_PATH="$SBP:$LIB_PATH"
>> fi
>>
>> if [ "${OS}" = "Darwin" ]
>> then
>> export DYLD_LIBRARY_PATH=$LIB_PATH
>> else
>> export LD_LIBRARY_PATH=$LIB_PATH
>> fi
>>
>>
>> /Staffan
>>
Ah, right. Well, not sure if that's cleaner, both seems viable. I'll
leave it up to your judgement.
/Nils
More information about the hotspot-dev
mailing list