Skip to content

Commit

Permalink
Merge pull request #3 from fanweixiao/master
Browse files Browse the repository at this point in the history
add `-lrt` option for `linux` build, fix "undefined reference to `clock_gettime'" issue.
  • Loading branch information
ideawu committed Aug 10, 2014
2 parents b64c5b2 + a00abd9 commit a3cbb32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.sh
Expand Up @@ -26,7 +26,7 @@ case "$TARGET_OS" in
#PLATFORM_CFLAGS=""
;;
Linux)
PLATFORM_CLIBS="-pthread"
PLATFORM_CLIBS="-pthread -lrt"
;;
OS_ANDROID_CROSSCOMPILE)
PLATFORM_CLIBS="-pthread"
Expand Down

0 comments on commit a3cbb32

Please sign in to comment.