comparison ltconfig @ 387:469d5c0da01d

Fixed shared library building on MacOS X (thanks Max!)
author Sam Lantinga <slouken@libsdl.org>
date Sat, 01 Jun 2002 18:48:13 +0000
parents 716ab2549f78
children 5602f069ccb2
comparison
equal deleted inserted replaced
386:2c5d4c22a2ac 387:469d5c0da01d
682 # we not sure about C++ programs. 682 # we not sure about C++ programs.
683 link_static_flag="$link_static_flag ${wl}-lC" 683 link_static_flag="$link_static_flag ${wl}-lC"
684 ;; 684 ;;
685 cygwin* | mingw* | os2*) 685 cygwin* | mingw* | os2*)
686 # We can build DLLs from non-PIC. 686 # We can build DLLs from non-PIC.
687 ;;
688 darwin* | rhapsody*)
689 # PIC is the default on this platform
690 # Common symbols not allowed in MH_DYLIB files
691 pic_flag='-fno-common'
687 ;; 692 ;;
688 amigaos*) 693 amigaos*)
689 # FIXME: we need at least 68020 code to build shared libraries, but 694 # FIXME: we need at least 68020 code to build shared libraries, but
690 # adding the `-m68020' flag to GCC prevents building anything better, 695 # adding the `-m68020' flag to GCC prevents building anything better,
691 # like `-m68040'. 696 # like `-m68040'.
1412 hardcode_libdir_flag_spec='-R$libdir' 1417 hardcode_libdir_flag_spec='-R$libdir'
1413 hardcode_direct=yes 1418 hardcode_direct=yes
1414 hardcode_shlibpath_var=no 1419 hardcode_shlibpath_var=no
1415 ;; 1420 ;;
1416 1421
1422 darwin* | rhapsody*)
1423 case "$host_os" in
1424 rhapsody* | darwin1.[012])
1425 allow_undefined_flag='-undefined suppress'
1426 ;;
1427 *) # Darwin 1.3 on
1428 allow_undefined_flag='-undefined error'
1429 ;;
1430 esac
1431 archive_cmds='$nonopt $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs $linkopts -install_name $rpath/$soname $verstring'
1432 # We need to add '_' to the symbols in $export_symbols first
1433 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols $lib'
1434 hardcode_direct=yes
1435 hardcode_shlibpath_var=no
1436 whole_archive_flag_spec='-all_load $convenience'
1437 ;;
1438
1417 hpux9* | hpux10* | hpux11*) 1439 hpux9* | hpux10* | hpux11*)
1418 case "$host_os" in 1440 case "$host_os" in
1419 hpux9*) archive_cmds='$rm $objdir/$soname~$LD -b +b $install_libdir -o $objdir/$soname $libobjs $deplibs $linkopts~test $objdir/$soname = $lib || mv $objdir/$soname $lib' ;; 1441 hpux9*) archive_cmds='$rm $objdir/$soname~$LD -b +b $install_libdir -o $objdir/$soname $libobjs $deplibs $linkopts~test $objdir/$soname = $lib || mv $objdir/$soname $lib' ;;
1420 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linkopts' ;; 1442 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linkopts' ;;
1421 esac 1443 esac
1498 allow_undefined_flag=' -expect_unresolved \*' 1520 allow_undefined_flag=' -expect_unresolved \*'
1499 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linkopts -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' 1521 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linkopts -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
1500 fi 1522 fi
1501 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 1523 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
1502 hardcode_libdir_separator=: 1524 hardcode_libdir_separator=:
1503 ;;
1504 rhapsody*)
1505 archive_cmds='$CC -bundle -undefined suppress -o $lib $libobjs $deplibs $linkopts'
1506 hardcode_libdir_flags_spec='-L$libdir'
1507 hardcode_direct=yes
1508 hardcode_shlibpath_var=no
1509 ;; 1525 ;;
1510 1526
1511 sco3.2v5*) 1527 sco3.2v5*)
1512 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts' 1528 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
1513 hardcode_shlibpath_var=no 1529 hardcode_shlibpath_var=no
1982 shlibpath_overrides_runpath=no 1998 shlibpath_overrides_runpath=no
1983 ;; 1999 ;;
1984 esac 2000 esac
1985 ;; 2001 ;;
1986 2002
2003 darwin* | rhapsody*)
2004 dynamic_linker="$host_os dyld"
2005 version_type=darwin
2006 need_lib_prefix=no
2007 need_version=no
2008 deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2009 file_magic_cmd='/usr/bin/file -L'
2010 case "$host_os" in
2011 rhapsody* | darwin1.[012])
2012 file_magic_test_file='/System/Library/Frameworks/System.framework/System'
2013 ;;
2014 *) # Darwin 1.3 on
2015 file_magic_test_file='/usr/lib/libSystem.dylib'
2016 ;;
2017 esac
2018 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
2019 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
2020 shlibpath_overrides_runpath=yes
2021 shlibpath_var=DYLD_LIBRARY_PATH
2022 ;;
2023
1987 gnu*) 2024 gnu*)
1988 version_type=linux 2025 version_type=linux
1989 need_lib_prefix=no 2026 need_lib_prefix=no
1990 need_version=no 2027 need_version=no
1991 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' 2028 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
2137 file_magic_cmd=/usr/bin/file 2174 file_magic_cmd=/usr/bin/file
2138 file_magic_test_file=/shlib/libc.so 2175 file_magic_test_file=/shlib/libc.so
2139 deplibs_check_method='pass_all' 2176 deplibs_check_method='pass_all'
2140 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 2177 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2141 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 2178 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2142 ;;
2143
2144 rhapsody*)
2145 version_type=sunos
2146 library_names_spec='${libname}.so'
2147 soname_spec='${libname}.so'
2148 shlibpath_var=DYLD_LIBRARY_PATH
2149 deplibs_check_method=pass_all
2150 ;; 2179 ;;
2151 2180
2152 sco3.2v5*) 2181 sco3.2v5*)
2153 version_type=osf 2182 version_type=osf
2154 soname_spec='${libname}${release}.so$major' 2183 soname_spec='${libname}${release}.so$major'