From: Josh Blum Date: Thu, 6 Oct 2016 22:06:09 +0000 (-0700) Subject: Support relocated install with VOLK_PREFIX env var X-Git-Tag: archive/raspbian/1.3-3+rpi1^2~12 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e67f85fafe7ead300820a3df1a5fb59fc789e62a;p=volk.git Support relocated install with VOLK_PREFIX env var Some packaging systems such as snaps will install the volk library to a dynamically chosen location. The install script can set an evironment variable so that the library reports the correct prefix. Gbp-Pq: Name 0013-Support-relocated-install-with-VOLK_PREFIX-env-var.patch --- diff --git a/lib/constants.c.in b/lib/constants.c.in index 3839f53..a81c7cb 100644 --- a/lib/constants.c.in +++ b/lib/constants.c.in @@ -24,11 +24,14 @@ #include #endif +#include #include char* volk_prefix() { + const char *prefix = getenv("VOLK_PREFIX"); + if (prefix != NULL) return (char *)prefix; return "@prefix@"; }