Compile native with -fPIC

This commit is contained in:
Alex Kotov 2022-01-20 23:54:25 +05:00
parent 162fa9a232
commit 943de9bcf7
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
3 changed files with 6 additions and 2 deletions

View File

@ -124,7 +124,7 @@ explicitly included, use `--without-all`.
```
./autogen.sh
./configure
./configure CFLAGS='-fPIC'
make
sudo make install
```
@ -136,7 +136,7 @@ environment.
```
./autogen.sh
./configure --enable-tests --enable-assert --enable-guard
./configure --enable-tests --enable-assert --enable-guard CFLAGS='-fPIC'
make
```

View File

@ -7,4 +7,6 @@ if [ -f "$REPO/Makefile" ]; then make -C "$REPO" distclean; fi
PREFIX="$REPO/dest/dev-native"
export CFLAGS='-fPIC'
"$REPO/configure" --prefix="$PREFIX" --enable-tests

View File

@ -5,4 +5,6 @@ set -e
REPO="$(realpath "$(dirname "$(realpath "$0")")/..")"
if [ -f "$REPO/Makefile" ]; then make -C "$REPO" distclean; fi
export CFLAGS='-fPIC'
"$REPO/configure" --enable-tests