diff options
author | Josh Triplett <josh@freedesktop.org> | 2008-06-01 18:53:00 -0700 |
---|---|---|
committer | Josh Triplett <josh@freedesktop.org> | 2008-06-01 18:53:00 -0700 |
commit | 5e9eef10693941eacb27a927f242ff70ca33d1c3 (patch) | |
tree | 8be667859f20b42e7d53277a2a4634d2d2744217 | |
parent | 3f196919cdc01578cafecc4ec551165d8ea8d34a (diff) |
Add support for Mac OS X on Intel.
Thanks to Alp Toker for providing the details on OS X shared
libraries, and testing the resulting changes to dolt.
-rw-r--r-- | dolt.m4 | 17 |
1 files changed, 13 insertions, 4 deletions
@@ -22,9 +22,16 @@ if test x$GCC != xyes; then dolt_supported=no fi case $host in -i?86-*-linux*|x86_64-*-linux*|powerpc-*-linux*) ;; -amd64-*-freebsd*|i?86-*-freebsd*|ia64-*-freebsd*) ;; -*) dolt_supported=no ;; +i?86-*-linux*|x86_64-*-linux*|powerpc-*-linux* \ +|amd64-*-freebsd*|i?86-*-freebsd*|ia64-*-freebsd*) + pic_options='-fPIC' + ;; +i?86-apple-darwin*) + pic_options='-fno-common' + ;; +*) + dolt_supported=no + ;; esac if test x$dolt_supported = xno ; then AC_MSG_RESULT([no, falling back to libtool]) @@ -72,7 +79,9 @@ if test ! -d "$libobjdir" ; then fi pic_object="$libobjdir/$objbase.o" args@<:@$objarg@:>@="$pic_object" -"${args@<:@@@:>@}" -fPIC -DPIC || exit $? +__DOLTCOMPILE__EOF__ + cat <<__DOLTCOMPILE__EOF__ >>doltcompile +"\${args@<:@@@:>@}" $pic_options -DPIC || exit \$? __DOLTCOMPILE__EOF__ fi |