1
0
Fork 0
mirror of https://github.com/tailix/libkernaux.git synced 2026-08-15 11:00:07 -04:00

Shared library (#144)

Closes #42
This commit is contained in:
Alex Kotov 2022-12-14 11:03:47 +04:00 committed by GitHub
parent 0d8bdec847
commit be761bd9f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 17 additions and 1 deletions

View file

@ -35,6 +35,8 @@ jobs:
run: make run: make
- name: install - name: install
run: sudo make install run: sudo make install
- name: ldconfig
run: sudo ldconfig
- working-directory: vendor/mruby - working-directory: vendor/mruby
name: test name: test
run: MRUBY_CONFIG=../../bindings/mruby/build_config.rb rake test run: MRUBY_CONFIG=../../bindings/mruby/build_config.rb rake test

View file

@ -33,6 +33,8 @@ jobs:
run: make run: make
- name: install - name: install
run: sudo make install run: sudo make install
- name: ldconfig
run: sudo ldconfig
- working-directory: bindings/ruby - working-directory: bindings/ruby
name: setup name: setup
run: ./bin/setup run: ./bin/setup

View file

@ -32,6 +32,8 @@ jobs:
run: make run: make
- name: install - name: install
run: sudo make install run: sudo make install
- name: ldconfig
run: sudo ldconfig
- working-directory: bindings/rust - working-directory: bindings/rust
name: test name: test
run: cargo test ${{matrix.packages.cargo}} run: cargo test ${{matrix.packages.cargo}}

View file

@ -1,3 +1,7 @@
2022-12-14 Alex Kotov <kotovalexarian@gmail.com>
* configure.ac: Enable shared library
2022-12-13 Alex Kotov <kotovalexarian@gmail.com> 2022-12-13 Alex Kotov <kotovalexarian@gmail.com>
* tests/Makefile.am: Fix FreeBSD builds * tests/Makefile.am: Fix FreeBSD builds

View file

@ -28,6 +28,7 @@ lib_LTLIBRARIES = libkernaux.la
# Required files # # Required files #
################## ##################
libkernaux_la_LDFLAGS = -version-info @PACKAGE_VERSION_SO@
libkernaux_la_LIBADD = libkernaux_la_LIBADD =
libkernaux_la_SOURCES = \ libkernaux_la_SOURCES = \
src/assert.c \ src/assert.c \

View file

@ -184,6 +184,7 @@ Tips
./configure ./configure
make make
sudo make install sudo make install
sudo ldconfig # on GNU/Linux
``` ```
This is just a usual library. You can use most of it's APIs in hosted This is just a usual library. You can use most of it's APIs in hosted
@ -210,6 +211,7 @@ without it in `$PATH`:
``` ```
./configure \ ./configure \
--host='i386-elf' \ --host='i386-elf' \
--disable-shared \
--enable-freestanding \ --enable-freestanding \
--with-libc \ --with-libc \
CC="$(which i386-elf-gcc)" CC="$(which i386-elf-gcc)"

1
VERSION_SO Normal file
View file

@ -0,0 +1 @@
0:0:0

View file

@ -35,6 +35,8 @@ AC_CONFIG_FILES([
AM_INIT_AUTOMAKE([1.16 subdir-objects]) AM_INIT_AUTOMAKE([1.16 subdir-objects])
AC_SUBST([PACKAGE_VERSION_SO], m4_normalize(m4_include([VERSION_SO])))
############### ###############
@ -378,7 +380,7 @@ AS_IF([test "$enable_checks_python" = yes -a "$enable_checks" = yes -a "$PYTHON_
# Initialize Libtool # # Initialize Libtool #
###################### ######################
LT_INIT([disable-shared]) LT_INIT