diff options
| -rw-r--r-- | Makefile | 1 | ||||
| -rw-r--r-- | src/disp.c | 7 |
2 files changed, 5 insertions, 3 deletions
@@ -10,6 +10,7 @@ CALCULER_VERSION := 1.0 __CFLAGS := -std=c99 \ -Wall \ -DCALCULER_VERSION=\"$(CALCULER_VERSION)\" \ + -DCALCULER_PREFIX=\"$(PREFIX)\" \ $(shell pkg-config --cflags readline) __LDFLAGS := __LIBS := $(shell pkg-config --libs readline) @@ -86,10 +86,11 @@ get_disp(char *disp_name) { #ifndef NDEBUG /* displays are shared libraries */ - char so_path[64] = {0}; - strcpy(so_path, "./src/.libs/"); + char so_path[128]; + strcpy(so_path, CALCULER_PREFIX); + strcat(so_path, "/lib/calculer/lib"); strcat(so_path, disp_name); - strcat(so_path, ".so.0.0.0"); + strcat(so_path, ".so"); struct disp *disp = malloc(sizeof(*disp)); disp->so_path = strdup(so_path); disp->name = disp_name; |
