Don't overwrite existing LD_LIBRARY_PATH when running g-ir-compiler

When running g-ir-compiler, augment LD_LIBRARY_PATH with the current
directory, rather than overwriting it entirely.

svn path=/trunk/; revision=27
This commit is contained in:
Owen Taylor 2008-11-03 20:41:25 +00:00
parent 39184955e5
commit 2ba8aaafca

View File

@ -48,4 +48,4 @@ Shell-0.1.gir: libgnome-shell-introspect.la $(libgnome_shell_la_SOURCES)
# The dependency on libgnome-shell.la here is because g-ir-compiler opens it
# (not the fake library, since we've already done the rewriting)
Shell-0.1.typelib: libgnome-shell.la Shell-0.1.gir
LD_LIBRARY_PATH=. g-ir-compiler Shell-0.1.gir -o $@
LD_LIBRARY_PATH=$${LD_LIBRARY_PATH:+$$LD_LIBRARY_PATH:}. g-ir-compiler Shell-0.1.gir -o $@