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:
parent
f515387504
commit
e38c9c9bb0
3 changed files with 7 additions and 11 deletions
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Add table
Reference in a new issue