build a static version of libubox
Signed-off-by: John Crispin <blogic@openwrt.org>
This commit is contained in:
parent
949f0d00bf
commit
e130b08d98
1 changed files with 4 additions and 1 deletions
|
@ -22,6 +22,8 @@ ENDIF()
|
||||||
SET(SOURCES avl.c avl-cmp.c blob.c blobmsg.c uloop.c usock.c ustream.c ustream-fd.c vlist.c utils.c safe_list.c runqueue.c md5.c kvlist.c)
|
SET(SOURCES avl.c avl-cmp.c blob.c blobmsg.c uloop.c usock.c ustream.c ustream-fd.c vlist.c utils.c safe_list.c runqueue.c md5.c kvlist.c)
|
||||||
|
|
||||||
ADD_LIBRARY(ubox SHARED ${SOURCES})
|
ADD_LIBRARY(ubox SHARED ${SOURCES})
|
||||||
|
ADD_LIBRARY(ubox-static STATIC ${SOURCES})
|
||||||
|
SET_TARGET_PROPERTIES(ubox-static PROPERTIES OUTPUT_NAME ubox)
|
||||||
|
|
||||||
SET(LIBS)
|
SET(LIBS)
|
||||||
CHECK_FUNCTION_EXISTS(clock_gettime HAVE_GETTIME)
|
CHECK_FUNCTION_EXISTS(clock_gettime HAVE_GETTIME)
|
||||||
|
@ -36,7 +38,8 @@ FILE(GLOB headers *.h)
|
||||||
INSTALL(FILES ${headers}
|
INSTALL(FILES ${headers}
|
||||||
DESTINATION include/libubox
|
DESTINATION include/libubox
|
||||||
)
|
)
|
||||||
INSTALL(TARGETS ubox
|
INSTALL(TARGETS ubox ubox-static
|
||||||
|
ARCHIVE DESTINATION lib
|
||||||
LIBRARY DESTINATION lib
|
LIBRARY DESTINATION lib
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue