# HG changeset patch # User Tassilo Philipp # Date 1662303050 -7200 # Node ID 965451c44faf2548849a0cdcc32d2711095ce6a6 # Parent 9cff26b919f3e7f4d9932aaaa86c0fb78dc38814 - enable fPIC for sunos 64bit platforms by default diff -r 9cff26b919f3 -r 965451c44faf configure --- 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