D 2015-01-30T05:44:44.712
J comment configure\sscript\sof\szlib\s1.2.8\sfails\sand\ssays\s"Please\suse\swin32/Makefile.gcc\sinstead."\swhen\s$(uname\s-s)\smatches\swith\sMINGW*\sor\smingw*\sby\scase\sstatement\sof\s/bin/sh.
And\sdefault\sMakefile\swhich\swill\sbe\sused\sin\sthis\scase\salso\ssays\ssame\swarnng,\sbut\smake\sdoes\snot\sreturn\serror.\sSo\skitcreator\sscript\sguesses\swrong.
For\sexample, \sI\ssucceeded\sto\sbuild\szlib\sby\sfollowing.
(awk\sline\sresolves\sanother\sproblem.\sBecause\sMakefile.gcc\sresets\sCC\sand\sRC\sby\sself.)
\scase\s$(uname\s-s\s2>\s/dev/null)\sin
\s \sMINGW*\s|\smingw*)
\s \s \s#\suse\swin32/Makefile.gcc\sinstead.
\s \s \secho\s"Running:\sawk\s'{if($1~/^[RC]C$/&&$2~/^=/)$2="?"$2;print}'\swin32/Makefile.gcc\s>\sMakefile"
\s \s \sawk\s'{if($1~/^[RC]C$/&&$2~/^=/)$2="?"$2;print}'\swin32/Makefile.gcc\s>\sMakefile
\s \s \secho\s"Running:\s${MAKE:-make}"
\s \s \s${MAKE:-make}\s||\sexit\s1
\s \s \secho\s"Running:\sBINARY_PATH=${INSTDIR}/bin\sINCLUDE_PATH=${INSTDIR}/include\sLIBRARY_PATH=${INSTDIR}/lib\s${MAKE:-make}\sinstall"
\s \s \sBINARY_PATH=${INSTDIR}/bin\sINCLUDE_PATH=${INSTDIR}/include\sLIBRARY_PATH=${INSTDIR}/lib\s${MAKE:-make}\sinstall
\s \s \s;;
\s \s*)
\s \s \s#\sIf\swe\sare\sbuilding\sfor\sKitDLL,\scompile\swith\s'-fPIC'
\s \s \sif\s[\s"${KITTARGET}"\s=\s"kitdll"\s];\sthen
\s \s \s \sCFLAGS="${CFLAGS}\s-fPIC"
\s \s \s \sexport\sCFLAGS
\s \s \sfi
\s \s \s#\sWe\sdon't\spass\sCONFIGUREEXTRA\shere,\ssince\sthis\sisn't\sa\sGNU\sautoconf
\s \s \s#\sscript\sand\swill\spuke
\s \s \secho\s"Running:\s./configure\s--prefix=\\"${INSTDIR}\\"\s--libdir=\\"${INSTDIR}/lib\\"\s--static"
\s \s \s./configure\s--prefix="${INSTDIR}"\s--libdir="${INSTDIR}/lib"\s--static
\s \s \secho\s"Running:\s${MAKE:-make}"
\s \s \s${MAKE:-make}\s||\sexit\s1
\s \s \secho\s"Running:\s${MAKE:-make}\sinstall"
\s \s \s${MAKE:-make}\sinstall
\s \s \s;;
\sesac
J foundin 0.9.2
J login anonymous
J severity Critical
J status Open
J title could\snot\sbuild\szlib\sin\smingw
J type Build\sProblem
K a39f4ac2fa55a646c1eee2a6667564eb8a9f9e05
U anonymous
Z 7e8df8418b0f812637e9a67330990eb5