]> SALOME platform Git repositories - modules/multipr.git/commitdiff
Salome HOME
New attempt to hack libtool: overrride libs search path V6_2_BR RELIQUAT_6x_15112010 V6_2_0 V6_2_0a2 V6_2_0rc1 before_mergefrom_V5_1_main_10Dec10 mergefrom_V5_1_main_10Dec10 mergeto_V6_main_23Dec10
authorvsr <vsr@opencascade.com>
Fri, 10 Dec 2010 15:13:39 +0000 (15:13 +0000)
committervsr <vsr@opencascade.com>
Fri, 10 Dec 2010 15:13:39 +0000 (15:13 +0000)
configure.ac

index e3de8681b1c911ff407e9ff48d260d4be6b6e7c0..ff45b15adb24448915da4f6f4668c56f3f9cdf6d 100644 (file)
@@ -322,6 +322,9 @@ sed -i "s%^CC=\"\(.*\)\"%hack_libtool (){ \n\
   $(pwd)/hack_libtool \1 \"\$[@]\" \n\
 }\n\
 CC=\"hack_libtool\"%g" libtool
+sed -i "s%\(\s*\)for searchdir in \$newlib_search_path \$lib_search_path \$sys_lib_search_path \$shlib_search_path; do%\1searchdirs=\"\$newlib_search_path \$lib_search_path \$sys_lib_search_path \$shlib_search_path\"\n\1for searchdir in \$searchdirs; do%g" libtool
+sed -i "s%\(\s*\)searchdirs=\"\$newlib_search_path \$lib_search_path \(.*\)\"%\1searchdirs=\"\$newlib_search_path \$lib_search_path\"\n\1sss_beg=\"\"\n\1sss_end=\"\2\"%g" libtool
+sed -i "s%\(\s*\)\(for searchdir in \$searchdirs; do\)%\1for sss in \$searchdirs; do\n\1  if ! test -d \$sss; then continue; fi\n\1  ssss=\$(cd \$sss; pwd)\n\1  if test \"\$ssss\" != \"\" \&\& test -d \$ssss; then\n\1    case \$ssss in\n\1      /usr/lib | /usr/lib64 ) ;;\n\1      * ) sss_beg=\"\$sss_beg \$ssss\" ;;\n\1    esac\n\1  fi\n\1done\n\1searchdirs=\"\$sss_beg \$sss_end\"\n\1\2%g" libtool
 ],[])
 
 # This list is initiated using autoscan and must be updated manually