1
0
Fork 0
mirror of https://github.com/tailix/libkernaux.git synced 2025-02-17 15:45:32 -05:00

Common: move FreeBSD hack from packages to CI config

This commit is contained in:
Alex Kotov 2022-02-10 03:48:26 +05:00
parent f515387504
commit e38c9c9bb0
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08
3 changed files with 7 additions and 11 deletions

View file

@ -18,6 +18,10 @@ main_freebsd_task:
mruby_freebsd_task:
name: mruby (FreeBSD)
env:
# FIXME: temporary hack to fix FreeBSD build
CPATH: '/usr/local/include'
LIBRARY_PATH: '/usr/local/lib'
dependencies_script:
- pkg install --yes autoconf automake rubygem-rake wget
dependencies_mruby_script:
@ -34,6 +38,9 @@ mruby_freebsd_task:
ruby_freebsd_task:
name: Ruby (FreeBSD)
env:
# FIXME: temporary hack to fix FreeBSD build
CPATH: '/usr/local/include'
dependencies_script:
- pkg install --yes autoconf automake git wget
dependencies_ruby_script:

View file

@ -2,12 +2,4 @@ MRuby::Build.new do |conf|
conf.toolchain
conf.enable_test
conf.gem '.'
# FIXME: temporary hack to fix FreeBSD build
conf.cc do |cc|
cc.include_paths += %w[/usr/local/include]
end
conf.linker do |linker|
linker.library_paths += %w[/usr/local/lib]
end
end

View file

@ -4,9 +4,6 @@ require 'mkmf'
$CFLAGS += ' -pedantic -Wall -Wextra'
# FIXME: temporary hack to fix FreeBSD build
$CPPFLAGS += ' -I/usr/local/include'
raise 'libkernaux not found' unless have_library 'kernaux'
raise 'kernaux_assert_do not found' unless have_func 'kernaux_assert_do'