Set LD_LIBRARY_PATH when running C examples too

This is needed to find the SWIG-generated shared library when using C
too, as it's already the case for many (but, surprisingly, not all)
other target languages.
This commit is contained in:
Vadim Zeitlin 2021-10-05 01:00:18 +02:00
commit 5bbaecfb81

View file

@ -1389,7 +1389,7 @@ c_syntax_check:
# -----------------------------------------------------------------
c_run: c_compile
$(RUNTOOL) ./$(RUNME) $(RUNPIPE)
env LD_LIBRARY_PATH=$$PWD $(RUNTOOL) ./$(RUNME) $(RUNPIPE)
# -----------------------------------------------------------------
# Version display