Skip to content

Commit

Permalink
Add -lrt flag for ChromeOS to enable the usage of clock_gettime. Enab…
Browse files Browse the repository at this point in the history
  • Loading branch information
yujieqin authored and Commit bot committed Feb 25, 2016
1 parent 45c2c81 commit ddb347b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions gyp/codec.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,11 @@
'OTHER_CPLUSPLUSFLAGS': ['-fexceptions'],
},
}],
['skia_os == "chromeos"', {
'link_settings': {
'libraries': ['-lrt', ],
},
}],
],
},
],
Expand Down
3 changes: 1 addition & 2 deletions gyp/common_variables.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@
}],
# RAW codec needs exceptions. Due to that, it is a separate target. Its usage can be
# controlled by skia_codec_decodes_raw.
['skia_os == "chromeos" or skia_os == "win"', {
# FIXME: fix the support for ChromeOS [DNG SDK issue with clock_gettime()].
['skia_os == "win"', {
'skia_codec_decodes_raw%' : 0,
}, {
'skia_codec_decodes_raw%' : 1,
Expand Down

0 comments on commit ddb347b

Please sign in to comment.