tce-load -i sgml-common cd opensp-1.5.2 sed -i 's:32,:253,:' lib/Syntax.cxx sed -i 's:LITLEN 240 :LITLEN 8092:' unicode/gensyntax.pl sed -i 's:LITLEN 240 :LITLEN 8092:' unicode/unicode.syn CC="gcc -flto -fuse-linker-plugin -mtune=generic -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -mtune=generic -Os -pipe" ./configure --prefix=/usr/local --disable-static --localstatedir=/var --disable-doc-build --enable-default-catalog=/usr/local/etc/sgml/catalog --enable-http --enable-default-search-path=/usr/local/share/sgml find . -name Makefile -type f -exec sed -i 's/-O2/ /g' {} \; make pkgdatadir=/usr/local/share/sgml/OpenSP-1.5.2 sudo make pkgdatadir=/usr/local/share/sgml/OpenSP-1.5.2 install sudo ln -sf onsgmls /usr/local/bin/nsgmls sudo ln -sf osgmlnorm /usr/local/bin/sgmlnorm sudo ln -sf ospam /usr/local/bin/spam sudo ln -sf ospcat /usr/local/bin/spcat sudo ln -sf ospent /usr/local/bin/spent sudo ln -sf osx /usr/local/bin/sx sudo ln -sf osx /usr/local/bin/sgml2xml sudo ln -sf libosp.so /usr/local/lib/libsp.so