intel / QATzip

Compression Library accelerated by Intel® QuickAssist Technology
https://developer.intel.com/quickassist
Other
140 stars 52 forks source link

Fix build when building out-of-tree: use $(top_srcdir) in -I flags #96

Open thiagomacieira opened 1 year ago

thiagomacieira commented 1 year ago

Otherwise, it can't find the sources.

Here's the script that we use to build the dependency:

        test -x configure || autoreconf --install --symlink -f
        mkdir -p build
        (
            cd build
            ../configure --prefix=$prefix --libdir=$libdir \
                         --enable-static --disable-shared \
                         --host=$target_triple \
                         CFLAGS="$CFLAGS -O2 -fPIC -DNDEBUG"
            ${MAKE-make} -C src V=1
        )

The important step is the mkdir build && cd build && ../configure.