summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael D. Stemle, Jr <themanchicken@gmail.com>2018-10-02 23:22:51 -0400
committerMichael D. Stemle, Jr <themanchicken@gmail.com>2018-10-02 23:22:51 -0400
commit335617c4c734c88464e5974a71e6b30be83c4bd2 (patch)
tree398feb080d3899e7efb6064b4da19f4ceeb17a8f /src
parent96668a9c6d9adcd8d7f47a5a21aca777d2ef461b (diff)
downloadlibfaketime-335617c4c734c88464e5974a71e6b30be83c4bd2.tar.gz
Fixed a bunch more issues, including prefix-related issues and library version breakage.
Diffstat (limited to 'src')
-rw-r--r--src/faketime.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/faketime.c b/src/faketime.c
index ad8fcfd..7898d4e 100644
--- a/src/faketime.c
+++ b/src/faketime.c
@@ -295,12 +295,12 @@ int main (int argc, char **argv)
{
char *ftpl_path;
#ifdef __APPLE__
- ftpl_path = PREFIX "/libfaketime.1.dylib";
+ ftpl_path = LIBPREFIX "/libfaketime." LIBVERSION ".dylib";
FILE *check;
check = fopen(ftpl_path, "ro");
if (check == NULL)
{
- ftpl_path = PREFIX "/lib/faketime/libfaketime.1.dylib";
+ ftpl_path = PREFIX "/lib/faketime/libfaketime." LIBVERSION ".dylib";
}
else
{
@@ -318,17 +318,17 @@ int main (int argc, char **argv)
* on MultiArch platforms, such as Debian, we put a literal $LIB into LD_PRELOAD.
*/
#ifndef MULTI_ARCH
- ftpl_path = PREFIX LIBDIRNAME "/libfaketimeMT.so.1";
+ ftpl_path = LIBPREFIX "/libfaketimeMT.so." LIBVERSION;
#else
- ftpl_path = PREFIX "/$LIB/faketime/libfaketimeMT.so.1";
+ ftpl_path = PREFIX "/$LIB/faketime/libfaketimeMT.so." LIBVERSION;
#endif
}
else
{
#ifndef MULTI_ARCH
- ftpl_path = PREFIX LIBDIRNAME "/libfaketime.so.1";
+ ftpl_path = LIBPREFIX "/libfaketime.so." LIBVERSION;
#else
- ftpl_path = PREFIX "/$LIB/faketime/libfaketime.so.1";
+ ftpl_path = PREFIX "/$LIB/faketime/libfaketime.so." LIBVERSION;
#endif
}
len = ((ld_preload)?strlen(ld_preload) + 1: 0) + 1 + strlen(ftpl_path);