Don't use ABI= environment variable on intel. Delete unused patch file.

Bug:
Submitted by:
Reviewed by:
Approved by:
Obtained from:

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@18077 d073be05-634f-4543-b044-5fe20cf6d1d6
This commit is contained in:
Gregory Wright
2006-05-23 16:51:59 +00:00
parent bba9df7651
commit dcb341db76
2 changed files with 5 additions and 33 deletions
+5 -2
View File
@@ -1,8 +1,9 @@
# $Id: Portfile,v 1.3 2006/05/14 21:10:33 gwright Exp $
# $Id: Portfile,v 1.4 2006/05/23 16:51:58 gwright Exp $
PortSystem 1.0
name gmp-cxx-wrappers
version 4.2.1
revision 2
categories devel math
maintainers gwright@opendarwin.org
platforms darwin freebsd
@@ -33,6 +34,7 @@ post-destroot { system "ranlib ${destroot}${prefix}/lib/libgmpxx.a"
ui_msg "running ranlib on static libraries"
file delete ${destroot}${prefix}/include/gmp.h
file delete ${destroot}${prefix}/lib/libgmp.a
file delete ${destroot}${prefix}/lib/libgmp.la
file delete ${destroot}${prefix}/lib/libgmp.dylib
@@ -49,11 +51,12 @@ variant test { test.run yes
}
variant darwin x86 {
configure.env-delete ABI=32
configure.args-append --host=none-apple-darwin
}
platform darwin i386 {
configure.env-delete ABI=32
configure.args-append --host=none-apple-darwin
}
@@ -1,31 +0,0 @@
--- configure.sav 2005-09-14 17:29:21.000000000 -0400
+++ configure 2005-09-14 17:54:13.000000000 -0400
@@ -10722,6 +10722,28 @@
;;
esac
;;
+ darwin* | rhapsody*)
+ case "$host_os" in
+ rhapsody* | darwin1.[012])
+ allow_undefined_flag='-undefined suppress'
+ ;;
+ *) # Darwin 1.3 on
+ allow_undefined_flag='-flat_namespace -undefined suppress'
+ ;;
+ esac
+
+ # FIXME: Relying on posixy $() will cause problems for
+ # cross-compilation, but unfortunately the echo tests do not
+ # yet detect zsh echo's removal of \ escapes. Also zsh mangles
+ # `"' quotes if we put them in here... so don't!
+ archive_cmds_CXX='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
+ # We need to add '_' to the symbols in $export_symbols first
+ #_LT_AC_TAGVAR(archive_expsym_cmds, )="$_LT_AC_TAGVAR(archive_cmds, )"' && strip -s $export_symbols'
+ hardcode_direct=yes
+ hardcode_shlibpath_var=no
+ whole_archive_flag_spec='-all_load $convenience'
+ ;;
+
dgux*)
case $cc_basename in
ec++)