Compiling STLPort 5.2.1 on Solaris v9
Brought to you by:
complement
I have Solaris v9 running in 64-bit mode. I downloaded STLPort 5.2.1 for Solaris, and unzipped it using tar command, and now I am trying to compile it for 32-bit mode. I get the same error as mentioned in this article. I am trying to do ./configure with relevant options for cross-compile followed by gmake.
$ cd STLport-5.2.1
$ CC=cc
$ CXX=CC
$ CFLAGS="-Xa -xO2 -xipo=2 -mt -KPIC"
$ CXXFLAGS="-xO2 -mt -KPIC"
$ CFLAGS="$CFLAGS -xtarget=native -m32 -xarch=native"
$ CXXFLAGS="$CXXFLAGS -xtarget=native -m32 -xarch=native"
$ export CC CFLAGS
$ export CXX CXXFLAGS
$ ./configure --use-compiler-family=CC --with-extra-cxxflags=" -xO2 -mt -KPIC -xtarget=native -m32 -xarch=native" --with-extra-cflags=" -Xa -xO2 -xipo=2 -mt -KPIC -xtarget=native -m32 -xarch=native"
$ gmake
gmake -C build/lib all;
gmake: *** No rule to make target `obj/gcc/so/libstlport.so.5.2.1', needed by `release-shared'. Stop.
$ cd STLport-5.2.1
$ CC=cc
$ CXX=CC
$ CFLAGS="-Xa -xO2 -xipo=2 -mt -KPIC"
$ CXXFLAGS="-xO2 -mt -KPIC"
$ CFLAGS="$CFLAGS -xtarget=native -m32 -xarch=native"
$ CXXFLAGS="$CXXFLAGS -xtarget=native -m32 -xarch=native"
$ export CC CFLAGS
$ export CXX CXXFLAGS
$ ./configure --use-compiler-family=CC --with-extra-cxxflags=" -xO2 -mt -KPIC -xtarget=native -m32 -xarch=native" --with-extra-cflags=" -Xa -xO2 -xipo=2 -mt -KPIC -xtarget=native -m32 -xarch=native"
$ gmake
gmake -C build/lib all;
gmake: *** No rule to make target `obj/gcc/so/libstlport.so.5.2.1', needed by `release-shared'. Stop.