variable utile pour compiler en tant qu'utilisateur
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:~/local/bin export LD_LIBRARY_PATH=~/local/lib export CPPFLAGS='-I~/local/include' export LDFLAGS='-L~/local/lib -lmaxminddb' export LIBDIR=~/local/lib export MAXMINDB_CFLAGS="-I~/local/include/" export MAXMINDB_LIBS="-L~/local/lib -lmaxminddb" export LIB=~/local/lib export LIBS="-lmaxminddb" export LD_RUN_PATH=~/local/lib
export ORIG_PKG_CONFIG_PATH=$PKG_CONFIG_PATH export PKG_CONFIG_PATH=~/local/lib/pkgconfigl:$PKG_CONFIG_PATH export ORIG_PATH=$PATH export PATH=~/local/bin:$PATH export ORIG_LD_LIBRARY_PATH=$LD_LIBRARY_PATH export LD_LIBRARY_PATH=~/local/lib:$LD_LIBRARY_PATH export CPPFLAGS='-I-I~/local/include' export LDFLAGS='-L~/local/lib' export LIBFFI_CFLAGS="-I~/local/lib/libffi-3.1/include" export LIBFFI_LIBS="-L~/local/lib -lffi" export SHELL=~/local/bin/zsh # set the shell environment variable ./configure --prefix=~/local -I~/local/include -L~/local/lib
Libraries have been installed in: ~/local/lib If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the '-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the 'LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the 'LD_RUN_PATH' environment variable during linking - use the '-Wl,-rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to '/etc/ld.so.conf' See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages.
--with-ld-opt='-Wl,-z,relro -Wl,--as-needed -static -Wl,-rpath=/local/lib'
pour python 2
./configure --prefix=~/local --enable-shared --enable-unicode=ucs4 LDFLAGS="-Wl,-rpath=~/local/lib"