Mercurial > pub > dyncall > dyncall
changeset 573:965451c44faf
- enable fPIC for sunos 64bit platforms by default
author | Tassilo Philipp |
---|---|
date | Sun, 04 Sep 2022 16:50:50 +0200 |
parents | 9cff26b919f3 |
children | 4cf57a9f8b92 |
files | configure |
diffstat | 1 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/configure Sun Sep 04 16:31:40 2022 +0200 +++ b/configure Sun Sep 04 16:50:50 2022 +0200 @@ -181,11 +181,12 @@ printf "CC=` (which cc gcc clang ) | grep -v '^no ' | head -1`\n" >>$C printf "CXX=`(which CC g++ clang++) | grep -v '^no ' | head -1`\n" >>$C # C++ compiler traditionally named CC printf "LDLIBS=-lm -ldl\n" >>$C - # make use of native instruction set, many open 64bit distributions execute 32 bit code and might default to that + # make use of native instruction set, many open 64bit distributions execute + # 32 bit code and might default to that (also use PIC for 64 bit platforms) if which isainfo >/dev/null && [ `isainfo -b` -eq 64 ]; then - printf "CFLAGS=-m64\n" >>$C - printf "CXXFLAGS=-m64\n" >>$C - printf "ASFLAGS=-m64\n" >>$C + printf "CFLAGS=-m64 -fPIC\n" >>$C + printf "CXXFLAGS=-m64 -fPIC\n" >>$C + printf "ASFLAGS=-m64 -fPIC\n" >>$C fi # Sun make's rules use CCC and CCFLAGS for c++ printf "CCC=\${CXX}\n" >>$C