| 6 | | All the shared libraries reference symbol main. To prevent this, after doing configure and before doing make, each libtool script has to be amended, -nostartfiles must be added to the second (or if there is only one, the first) archive_cmds. |
| | 5 | cd gettext-0.17[[br]] |
| | 6 | cp /boot/common/share/libtool/config/config.* build-aux/[[br]] |
| | 7 | rm ./gettext-tools/gnulib-m4/openmp.m4[[br]] |
| | 8 | |
| | 9 | |
| | 10 | echo "AC_CONFIG_MACRO_DIR([m4])" >> configure.ac; libtoolize --force --copy[[br]] |
| | 11 | cd autoconf-lib-link; echo "AC_CONFIG_MACRO_DIR([m4])" >> configure.ac; libtoolize --force --copy; cd ..[[br]] |
| | 12 | cd gettext-runtime; echo "AC_CONFIG_MACRO_DIR([m4])" >> configure.ac; libtoolize --force --copy; cd ..[[br]] |
| | 13 | cd gettext-tools; echo "AC_CONFIG_MACRO_DIR([m4])" >> configure.ac; libtoolize --force --copy; cd ..[[br]] |
| | 14 | cd gettext-runtime/libasprintf; libtoolize --force --copy; cd ../..[[br]] |
| | 15 | |
| | 16 | |
| | 17 | export EXTRA_CONF="--disable-java"[[br]] |
| | 18 | export LDFLAGS="-lnetwork -liconv"[[br]] |
| | 19 | |
| | 20 | |
| | 21 | wget http://ports.haiku-files.org/raw-attachment/wiki/sys-devel/gettext/0.17/4/gettext-0.17-haiku.diff [[br]] |
| | 22 | patch -p1 <gettext-0.17-haiku.diff[[br]] |
| | 23 | |
| | 24 | |
| | 25 | ./autogen.sh --quick --skip-gnulib[[br]] |
| | 26 | ./configure --prefix=/boot/common LDFLAGS="-lnetwork -liconv"[[br]] |
| | 27 | make |
| | 28 | |
| | 29 | |
| | 30 | make install |