mirror of
https://github.com/tailix/libkernaux.git
synced 2025-04-14 17:32:55 -04:00
Compile native with -fPIC
This commit is contained in:
parent
162fa9a232
commit
943de9bcf7
3 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
```
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue