Mercurial > sdl-ios-xcode
comparison ltmain.sh @ 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 | cf2af46e9e2a |
children | 84acd4f134e7 |
comparison
equal
deleted
inserted
replaced
386:2c5d4c22a2ac | 387:469d5c0da01d |
---|---|
949 expsyms_regex) | 949 expsyms_regex) |
950 export_symbols_regex="$arg" | 950 export_symbols_regex="$arg" |
951 prev= | 951 prev= |
952 continue | 952 continue |
953 ;; | 953 ;; |
954 framework) | |
955 deplibs="$deplibs -framework $arg" | |
956 prev= | |
957 continue | |
958 ;; | |
954 release) | 959 release) |
955 release="-$arg" | 960 release="-$arg" |
956 prev= | 961 prev= |
957 continue | 962 continue |
958 ;; | 963 ;; |
1032 if test "X$arg" = "X-export-symbols"; then | 1037 if test "X$arg" = "X-export-symbols"; then |
1033 prev=expsyms | 1038 prev=expsyms |
1034 else | 1039 else |
1035 prev=expsyms_regex | 1040 prev=expsyms_regex |
1036 fi | 1041 fi |
1042 continue | |
1043 ;; | |
1044 | |
1045 -framework) | |
1046 prev=framework | |
1037 continue | 1047 continue |
1038 ;; | 1048 ;; |
1039 | 1049 |
1040 -L*) | 1050 -L*) |
1041 dir=`$echo "X$arg" | $Xsed -e 's/^-L//'` | 1051 dir=`$echo "X$arg" | $Xsed -e 's/^-L//'` |
1766 # want one extension on Windows 95. | 1776 # want one extension on Windows 95. |
1767 major=`expr $current - $age` | 1777 major=`expr $current - $age` |
1768 versuffix="-$major-$age-$revision" | 1778 versuffix="-$major-$age-$revision" |
1769 ;; | 1779 ;; |
1770 | 1780 |
1781 darwin) | |
1782 # Like Linux, but with the current version available in | |
1783 # verstring for coding it into the library header | |
1784 major=.`expr $current - $age` | |
1785 versuffix="$major.$age.$revision" | |
1786 # Darwin ld doesn't like 0 for these options... | |
1787 minor_current=`expr $current + 1` | |
1788 verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" | |
1789 ;; | |
1790 | |
1771 *) | 1791 *) |
1772 $echo "$modename: unknown library version type \`$version_type'" 1>&2 | 1792 $echo "$modename: unknown library version type \`$version_type'" 1>&2 |
1773 echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 | 1793 echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 |
1774 exit 1 | 1794 exit 1 |
1775 ;; | 1795 ;; |
1776 esac | 1796 esac |
1777 | 1797 |
1778 # Clear the version info if we defaulted, and they specified a release. | 1798 # Clear the version info if we defaulted, and they specified a release. |
1779 if test -z "$vinfo" && test -n "$release"; then | 1799 if test -z "$vinfo" && test -n "$release"; then |
1780 major= | 1800 major= |
1801 case "$version_type" in | |
1802 darwin) | |
1803 # we can't check for "0.0" in archive_cmds due to quoting | |
1804 # problems, so we reset it completely | |
1805 verstring="" | |
1806 ;; | |
1807 *) | |
1781 verstring="0.0" | 1808 verstring="0.0" |
1809 ;; | |
1810 esac | |
1782 if test "$need_version" = no; then | 1811 if test "$need_version" = no; then |
1783 versuffix= | 1812 versuffix= |
1784 else | 1813 else |
1785 versuffix=".0.0" | 1814 versuffix=".0.0" |
1786 fi | 1815 fi |