mirror of https://github.com/tailix/libkernaux.git
Compile native with -fPIC
This commit is contained in:
parent
162fa9a232
commit
943de9bcf7
|
@ -124,7 +124,7 @@ explicitly included, use `--without-all`.
|
||||||
|
|
||||||
```
|
```
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
./configure
|
./configure CFLAGS='-fPIC'
|
||||||
make
|
make
|
||||||
sudo make install
|
sudo make install
|
||||||
```
|
```
|
||||||
|
@ -136,7 +136,7 @@ environment.
|
||||||
|
|
||||||
```
|
```
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
./configure --enable-tests --enable-assert --enable-guard
|
./configure --enable-tests --enable-assert --enable-guard CFLAGS='-fPIC'
|
||||||
make
|
make
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -7,4 +7,6 @@ if [ -f "$REPO/Makefile" ]; then make -C "$REPO" distclean; fi
|
||||||
|
|
||||||
PREFIX="$REPO/dest/dev-native"
|
PREFIX="$REPO/dest/dev-native"
|
||||||
|
|
||||||
|
export CFLAGS='-fPIC'
|
||||||
|
|
||||||
"$REPO/configure" --prefix="$PREFIX" --enable-tests
|
"$REPO/configure" --prefix="$PREFIX" --enable-tests
|
||||||
|
|
|
@ -5,4 +5,6 @@ set -e
|
||||||
REPO="$(realpath "$(dirname "$(realpath "$0")")/..")"
|
REPO="$(realpath "$(dirname "$(realpath "$0")")/..")"
|
||||||
if [ -f "$REPO/Makefile" ]; then make -C "$REPO" distclean; fi
|
if [ -f "$REPO/Makefile" ]; then make -C "$REPO" distclean; fi
|
||||||
|
|
||||||
|
export CFLAGS='-fPIC'
|
||||||
|
|
||||||
"$REPO/configure" --enable-tests
|
"$REPO/configure" --enable-tests
|
||||||
|
|
Loading…
Reference in New Issue