gconfig: fix build failure on fedora 13
authorRichard Kennedy <richard@rsk.demon.co.uk>
Thu, 27 May 2010 09:22:28 +0000 (10:22 +0100)
committerMichal Marek <mmarek@suse.cz>
Thu, 3 Jun 2010 08:05:18 +0000 (10:05 +0200)
commitcbab05f041a4cff6ca15856bdd35238b282b64eb
tree5886895e227e41d67f4c655ecef15094e430d4f1
parent07105202bdebf6e9a4c72c634cf90398abfad870
gconfig: fix build failure on fedora 13

Making gconfig fails on fedora 13 as the linker cannot resolve dlsym.

Adding libdl to the link command fixes this.

make shows this error :-
    /usr/bin/ld: scripts/kconfig/kconfig_load.o: undefined reference to symbol 'dlsym@@GLIBC_2.2.5'
    /usr/bin/ld: note: 'dlsym@@GLIBC_2.2.5' is defined in DSO /lib64/libdl.so.2 so try adding it to the linker command line
    /lib64/libdl.so.2: could not read symbols: Invalid operation

tested on x86_64 fedora 13.

Signed-off-by: Richard Kennedy <richard@rsk.demon.co.uk>
Reviewed-by: WANG Cong <xiyou.wangcong@gmail.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/kconfig/Makefile