Kaydet (Commit) 1553cc32 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Make --disable-runtime-optimizations not fail when LIBO_LD_PATH is unset

...outside of CppunitTest_xmlsecurity_signing

Change-Id: I0679fd3437bdddfdb7b40daddc7c107d9d8fcc90
üst e5e9633a
--- src/posix-io.c
+++ src/posix-io.c
@@ -468,6 +468,11 @@
@@ -468,6 +468,9 @@
if (atfork)
atfork (atforkvalue, 0);
+ char const * ld_path = getenv("LIBO_LD_PATH");
+ if (!ld_path)
+ abort();
+ if (setenv("LD_LIBRARY_PATH", ld_path, 1) != 0)
+ if (ld_path && setenv("LD_LIBRARY_PATH", ld_path, 1) != 0)
+ abort();
/* First close all fds which will not be inherited. If we
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment