No commit message authored by Karel Slaný's avatar Karel Slaný
No commit message
...@@ -31,6 +31,8 @@ In order to generate the configuration script run the following script: ...@@ -31,6 +31,8 @@ In order to generate the configuration script run the following script:
./autogen.sh ./autogen.sh
``` ```
### Targeting UNIX and UNIX-Like Systems
Configuring and building the sources: Configuring and building the sources:
``` shell ``` shell
./configure ./configure
...@@ -38,13 +40,15 @@ make ...@@ -38,13 +40,15 @@ make
``` ```
This will build the js-ctypes and native messaging cores for the current architecture. Library dependencies will be taken from the system. Firefox extension package file (.xpi) is going to be created in the add-on subdirectory. This will build the js-ctypes and native messaging cores for the current architecture. Library dependencies will be taken from the system. Firefox extension package file (.xpi) is going to be created in the add-on subdirectory.
Building the extension with statically linked libraries: You can bundle the most important libraries directly into the extension core making it more portable. Building the extension with statically linked libraries:
``` shell ``` shell
./configure --enable-static-linking ./configure --enable-static-linking
make make
``` ```
This will download OpenSSL, ldns and Unbound sources from an external git repository. The libraries are going to be compiled and statically linked into the binary extension cores. This will download OpenSSL, ldns and Unbound sources from an external git repository. The libraries are going to be compiled and statically linked into the binary extension cores.
### Targeting OS X and UNIX(-Like) Systems
Building fat extensions: Building fat extensions:
``` shell ``` shell
./configure --enable-static-linking --with-force-abi=fat ./configure --enable-static-linking --with-force-abi=fat
... ...
......