kconfig/check-gettext.sh
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Thu Apr 02 21:58:34 2009 +0000 (2009-04-02)
changeset 1287 2a70bb65824e
permissions -rw-r--r--
Speaking of gcc-4.2.1, Ted Jordan writes on 20090401:
The generated libtool for building libstdc++ adds the -nostdlib option to the
g++ command for linking but doesn't add -lgcc. This causes a "hidden symbol"
error when linking against the libstdc++ shared object. This patch adds gcc
to the list of libraries linked against when linking libstdc++.

/trunk/patches/gcc/4.2.1/300-libstdc++-nostdlib-linking.patch | 21 21 0 0 +++++++++++++++++
1 file changed, 21 insertions(+)
yann@943
     1
#!/bin/sh
yann@943
     2
# Needed for systems without gettext
yann@943
     3
$* -xc -o /dev/null - > /dev/null 2>&1 << EOF
yann@943
     4
#include <libintl.h>
yann@943
     5
int main()
yann@943
     6
{
yann@943
     7
	gettext("");
yann@943
     8
	return 0;
yann@943
     9
}
yann@943
    10
EOF
yann@943
    11
if [ ! "$?" -eq "0"  ]; then
yann@943
    12
	echo -DKBUILD_NO_NLS;
yann@943
    13
fi
yann@943
    14