Travis build fixes

This commit is contained in:
Kovid Goyal 2017-09-27 18:07:48 +05:30
parent e5b5fb2773
commit 9601ed79f1
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 6 additions and 0 deletions

View File

@ -19,6 +19,7 @@ matrix:
- libxinerama-dev
- libxcursor-dev
- libunistring-dev
- libpng-dev
- os: linux
dist: trusty
@ -38,6 +39,7 @@ matrix:
- libxinerama-dev
- libxcursor-dev
- libunistring-dev
- libpng-dev
- os: linux
dist: trusty
@ -57,6 +59,7 @@ matrix:
- libxinerama-dev
- libxcursor-dev
- libunistring-dev
- libpng-dev
- clang
- os: osx
language: generic
@ -82,6 +85,7 @@ install: |
brew install python3;
brew install glfw;
brew install libunistring;
brew install libpng;
else
mkdir -p $SW;
curl https://download.calibre-ebook.com/travis/kitty/osx.tar.xz | tar xJ -C $SW;

View File

@ -175,6 +175,8 @@ def init_env(debug=False, sanitize=False, native_optimizations=True, profile=Fal
ldpaths = pylib + glew_libs + font_libs + glfw_ldflags + libpng + ['-lunistring']
if not isosx:
ldpaths += ['-lrt']
if '-lz' not in ldpaths:
ldpaths.append('-lz')
try:
os.mkdir(build_dir)