Eralt / arduino

Automatically exported from code.google.com/p/arduino
0 stars 0 forks source link

arduino linux wrapper sets LD_LIBRARY_PATH to . if previously unset #389

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In the current git-hub master head (and in previous releases), the linux 
wrapper /build/linux/dist/arduino has the following line:

LD_LIBRARY_PATH=`pwd`/lib:${LD_LIBRARY_PATH}

If LD_LIBRARY_PATH is unset (which it usually is), it will set the path to 
LD_LIBRARY_PATH=/arduinopath/lib:.

that just adds an additional search path.

a quick and easy fix is to replace it with:

LD_LIBRARY_PATH=`pwd`/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}

This was suggested at:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=602041

by Julien Cristau.

Original issue reported on code.google.com by showard...@gmail.com on 2 Nov 2010 at 1:25

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by dmel...@gmail.com on 17 Nov 2010 at 5:10

GoogleCodeExporter commented 9 years ago
https://github.com/arduino/Arduino/commit/c6d1baa27514f9960159f7432cd64406f596a2
67

Original comment by dmel...@gmail.com on 27 Nov 2010 at 11:01