From 4e5eeaeef3d22d6d671c627d9d76688cbcc083d5 Mon Sep 17 00:00:00 2001 From: fahed Date: Mon, 22 Jul 2013 13:07:38 +0000 Subject: [PATCH] because on Fedora, check error : /usr/bin/ld: /tmp/ccQHybYu.o: undefined reference to symbol 'MEDfileOpen' usr/bin/ld: note: 'MEDfileOpen' is defined in DSO /data/tmplgls/salome/prerequis/install/FD18_64/med-dev/FROM_hdf5-1.8.10/lib/libmedC.so so try adding it to the linker command line See http://comments.gmane.org/gmane.linux.redhat.fedora.devel/160632 --- salome_adm/unix/config_files/check_med3.m4 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/salome_adm/unix/config_files/check_med3.m4 b/salome_adm/unix/config_files/check_med3.m4 index 56d792d6f..4ab0b966b 100644 --- a/salome_adm/unix/config_files/check_med3.m4 +++ b/salome_adm/unix/config_files/check_med3.m4 @@ -174,7 +174,11 @@ then dnl check med3 library LIBS_old="$LIBS" - LIBS="$LIBS $LOCAL_LIBS" + # $LOCAL_LIBS_C_ONLY is added to next line because on Fedora, check error : + #/usr/bin/ld: /tmp/ccQHybYu.o: undefined reference to symbol 'MEDfileOpen' + #/usr/bin/ld: note: 'MEDfileOpen' is defined in DSO /data/tmplgls/salome/prerequis/install/FD18_64/med-dev/FROM_hdf5-1.8.10/lib/libmedC.so so try adding it to the linker command line + # See http://comments.gmane.org/gmane.linux.redhat.fedora.devel/160632 + LIBS="$LIBS $LOCAL_LIBS $LOCAL_LIBS_C_ONLY" AC_CHECK_LIB(med,MEDfileOpen,med3_ok=yes,med3_ok=no) if test "x$med3_ok" = "xyes" -- 2.39.2