Le 22 nov. 08 à 17:29, Truls Becken a écrit : > What I originally tried, before seeing if "LD_LIBRARY_PATH=`pwd`/Build > make" worked in principle, was to replace -rpath-link in etoile.make > with; > > export LD_LIBRARY_PATH = $(BUILD_DIR):$(LD_LIBRARY_PATH) > > This failed because make complained about the recursive definition. I > don't know why it does that. I would think worst case scenario is that > you get the same directory prepended a few times. Looking at the > makefiles, that shouldn't even be the case because etoile.make is not > included on every level. > > Making all in EtoileFoundation... > ../../etoile.make:275: *** Recursive variable `LD_LIBRARY_PATH' > references itself (eventually). > > Do you have a way to get around this, Quentin?
The error line mentions '(eventually)' so 'make' is surely just preventing it by safety. Each time LD_LIBRARY_PATH is read, 'make' is going to reevaluate it because the variable was assigned with '=' operator. Using ':=' instead of '=' should solve the issue, by triggering the immediate evaluation of the variable rather than deferring the substitution to the time the variable gets accessed. export LD_LIBRARY_PATH := $(BUILD_DIR):$(LD_LIBRARY_PATH) Let me know if that works, Quentin. _______________________________________________ Etoile-discuss mailing list [email protected] https://mail.gna.org/listinfo/etoile-discuss
