diff options
| author | Tristan Riehs <tristan.riehs@inria.fr> | 2026-08-04 22:59:12 +0200 |
|---|---|---|
| committer | Tristan Riehs <tristan.riehs@inria.fr> | 2026-08-04 22:59:12 +0200 |
| commit | 733aaa70aaf4e245809a46faef50910f0732d4c7 (patch) | |
| tree | a12564cfb67fc73d54686a33d2a5c809eda18500 | |
| parent | 8563469f189dc3fb79feee02833cc5913c8ee96e (diff) | |
Update display libraries lookup
| -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; |
