diff options
author | Burt P <pburt0@gmail.com> | 2019-08-18 16:41:29 -0500 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2019-08-18 23:49:29 +0200 |
commit | f5c8d890bd22a12cc561ed231c92455a47b9269a (patch) | |
tree | d121c59593e1e2753ac6967ddcdaa1e89b364936 | |
parent | d285b2f6209e6ced22482d15e3a78e67731e8bf7 (diff) |
Link sysobj_early with -whole-archive
-rw-r--r-- | CMakeLists.txt | 4 | ||||
-rw-r--r-- | deps/sysobj_early/src/appf.c | 6 |
2 files changed, 2 insertions, 8 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index e41cbf4a..e43195db 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -295,7 +295,7 @@ add_executable(hardinfo shell/loadgraph-uber.c ) target_link_libraries(hardinfo - sysobj_early + -Wl,-whole-archive sysobj_early -Wl,-no-whole-archive uber-graph ${GTK_LIBRARIES} ${LIBSOUP_LIBRARIES} @@ -333,7 +333,7 @@ add_executable(hardinfo shell/loadgraph.c ) target_link_libraries(hardinfo - sysobj_early + -Wl,-whole-archive sysobj_early -Wl,-no-whole-archive ${GTK_LIBRARIES} ${LIBSOUP_LIBRARIES} m diff --git a/deps/sysobj_early/src/appf.c b/deps/sysobj_early/src/appf.c index e63e77d0..8e6991e3 100644 --- a/deps/sysobj_early/src/appf.c +++ b/deps/sysobj_early/src/appf.c @@ -25,12 +25,6 @@ #include <string.h> #include "appf.h" -/* FIXME: if this isn't here, hardinfo will crash, - * I don't have the slightest idea why */ -void wtf() { - void *e = edid_new(NULL, 0); -} - char *appf(char *str, const char *sep, const char *fmt, ...) { char *buf = NULL; int inlen, seplen, len; |