summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-06-11 19:48:16 +0200
committerFelix Fietkau <nbd@openwrt.org>2014-06-11 19:48:16 +0200
commitefc491fd9345c38054ce96503c3bf846a19e9260 (patch)
tree165a1adc417f2df2dec04589eea69d4ca629359b
parent61e88ee49ade4fd8014bb11ca3166d93274c50e8 (diff)
downloadunitd-efc491fd9345c38054ce96503c3bf846a19e9260.tar
unitd-efc491fd9345c38054ce96503c3bf846a19e9260.zip
procd: force -lc -lgcc to handle cross-dependencies between those two
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2b72ad3..b90cdd7 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -43,7 +43,7 @@ INSTALL(TARGETS udevtrigger
ADD_EXECUTABLE(upgraded upgraded.c watchdog.c)
-TARGET_LINK_LIBRARIES(upgraded ubox.a rt.a -static)
+TARGET_LINK_LIBRARIES(upgraded ubox.a rt.a -static -lc -lgcc)
set_target_properties(upgraded PROPERTIES LINK_SEARCH_END_STATIC 1)
INSTALL(TARGETS upgraded
RUNTIME DESTINATION sbin