diff options
author | dimitri staessens <[email protected]> | 2016-06-27 14:46:57 +0200 |
---|---|---|
committer | dimitri staessens <[email protected]> | 2016-06-27 14:46:57 +0200 |
commit | 25b12e206d22125b7d403d1339738f5bb4a468b5 (patch) | |
tree | 29434ed2e9da45b776559e8078ba84d323945d07 /src/lib | |
parent | e32ab9d39612651af7641944f6e17d265b23dd95 (diff) | |
parent | 80765f1d6ea16892224be8da954e5b0a4c53303b (diff) | |
download | ouroboros-25b12e206d22125b7d403d1339738f5bb4a468b5.tar.gz ouroboros-25b12e206d22125b7d403d1339738f5bb4a468b5.zip |
Merged in sandervrijders/ouroboros/be (pull request #140)
build: Fix installation prefix
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/lib/ipcp.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/CMakeLists.txt b/src/lib/CMakeLists.txt index 2a75ef17..8803fc3b 100644 --- a/src/lib/CMakeLists.txt +++ b/src/lib/CMakeLists.txt @@ -50,7 +50,7 @@ if (CMAKE_BUILD_TYPE MATCHES Debug) MACRO_ADD_COMPILE_FLAGS(ouroboros -DCONFIG_OUROBOROS_DEBUG) endif (CMAKE_BUILD_TYPE MATCHES Debug) -install(TARGETS ouroboros LIBRARY DESTINATION usr/lib) +install(TARGETS ouroboros LIBRARY DESTINATION /usr/lib) target_include_directories(ouroboros PUBLIC ${CMAKE_CURRENT_BINARY_DIR}) diff --git a/src/lib/ipcp.c b/src/lib/ipcp.c index 730880f9..77263bcf 100644 --- a/src/lib/ipcp.c +++ b/src/lib/ipcp.c @@ -105,7 +105,7 @@ pid_t ipcp_create(char * ipcp_name, pid_t pid = 0; char irmd_pid[10]; size_t len = 0; - char * ipcp_dir = "sbin/"; + char * ipcp_dir = "/sbin/"; char * full_name = NULL; char * exec_name = NULL; @@ -132,7 +132,7 @@ pid_t ipcp_create(char * ipcp_name, else exit(EXIT_FAILURE); - len += strlen(INSTALL_DIR); + len += strlen(INSTALL_PREFIX); len += strlen(ipcp_dir); len += strlen(exec_name); len += 1; @@ -143,7 +143,7 @@ pid_t ipcp_create(char * ipcp_name, exit(EXIT_FAILURE); } - strcpy(full_name, INSTALL_DIR); + strcpy(full_name, INSTALL_PREFIX); strcat(full_name, ipcp_dir); strcat(full_name, exec_name); full_name[len] = '\0'; |