Initial commit
[yaffs-website] / node_modules / node-sass / src / libsass / docs / build-shared-library.md
1 This page is mostly intended for people that want to build a system library that gets distributed via RPMs or other means. This is currently in a experimental phase, as we currently do not really guarantee any ABI forward compatibility. The C API was rewritten to make this possible in the future, but we want to wait some more time till we can call this final and stable.
2
3 Building via autotools
4 --
5
6 You want to build a system library only via autotools, since it will create the proper `libtool` files to make it loadable on multiple systems. We hope this works correctly, but nobody of the `libsass` core team has much knowledge in this area. Therefore we are open for comments or improvements by people that have more experience in that matter (like package maintainers from various linux distributions).
7
8 ```bash
9 apt-get install autoconf libtool
10 git clone https://github.com/sass/libsass.git
11 cd libsass
12 autoreconf --force --install
13 ./configure \
14   --disable-tests \
15   --disable-static \
16   --enable-shared \
17   --prefix=/usr
18 make -j5 install
19 cd ..
20 ```
21
22 This should install these files
23 ```bash
24 # $ ls -la /usr/lib/libsass.*
25 /usr/lib/libsass.la
26 /usr/lib/libsass.so -> libsass.so.0.0.9
27 /usr/lib/libsass.so.0 -> libsass.so.0.0.9
28 /usr/lib/libsass.so.0.0.9
29 # $ ls -la /usr/include/sass*
30 /usr/include/sass.h
31 /usr/include/sass2scss.h
32 /usr/include/sass/context.h
33 /usr/include/sass/functions.h
34 /usr/include/sass/values.h
35 ```