mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
Fix the macOS 11+ libtool bug. Fix implicit function declarations. Closes: https://trac.macports.org/ticket/63222 Honor MacPorts CFLAGS; therefore increase revision because this changes which optimization flags are used. It also fixes the universal variant. Modernize checksums. Use leading 0 for octal numbers. Indicate which C language standard is needed.
93 lines
3.3 KiB
Diff
93 lines
3.3 KiB
Diff
Recognize macOS 11 and later and simplify.
|
|
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=44605
|
|
--- configure.orig 2006-02-21 02:03:22.000000000 -0600
|
|
+++ configure 2021-07-06 17:51:33.000000000 -0500
|
|
@@ -8323,18 +8323,14 @@
|
|
allow_undefined_flag='${wl}-undefined ${wl}suppress'
|
|
;;
|
|
*) # Darwin 1.3 on
|
|
- if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
|
|
- allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
|
- else
|
|
- case ${MACOSX_DEPLOYMENT_TARGET} in
|
|
- 10.[012])
|
|
+ case $MACOSX_DEPLOYMENT_TARGET,$host in
|
|
+ 10.[012],*|,*powerpc*-darwin[5-8]*)
|
|
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
|
;;
|
|
- 10.*)
|
|
+ *)
|
|
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
|
|
;;
|
|
esac
|
|
- fi
|
|
;;
|
|
esac
|
|
archive_cmds_need_lc=no
|
|
@@ -11302,18 +11298,14 @@
|
|
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
|
|
;;
|
|
*) # Darwin 1.3 on
|
|
- if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
|
|
- allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
|
- else
|
|
- case ${MACOSX_DEPLOYMENT_TARGET} in
|
|
- 10.[012])
|
|
+ case $MACOSX_DEPLOYMENT_TARGET,$host in
|
|
+ 10.[012],*|,*powerpc*-darwin[5-8]*)
|
|
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
|
;;
|
|
- 10.*)
|
|
+ *)
|
|
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
|
|
;;
|
|
esac
|
|
- fi
|
|
;;
|
|
esac
|
|
archive_cmds_need_lc_CXX=no
|
|
@@ -15369,18 +15361,14 @@
|
|
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
|
|
;;
|
|
*) # Darwin 1.3 on
|
|
- if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
|
|
- allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
|
- else
|
|
- case ${MACOSX_DEPLOYMENT_TARGET} in
|
|
- 10.[012])
|
|
+ case $MACOSX_DEPLOYMENT_TARGET,$host in
|
|
+ 10.[012],*|,*powerpc*-darwin[5-8]*)
|
|
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
|
;;
|
|
- 10.*)
|
|
+ *)
|
|
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
|
|
;;
|
|
esac
|
|
- fi
|
|
;;
|
|
esac
|
|
archive_cmds_need_lc_F77=no
|
|
@@ -17839,18 +17827,14 @@
|
|
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
|
|
;;
|
|
*) # Darwin 1.3 on
|
|
- if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
|
|
- allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
|
- else
|
|
- case ${MACOSX_DEPLOYMENT_TARGET} in
|
|
- 10.[012])
|
|
+ case $MACOSX_DEPLOYMENT_TARGET,$host in
|
|
+ 10.[012],*|,*powerpc*-darwin[5-8]*)
|
|
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
|
;;
|
|
- 10.*)
|
|
+ *)
|
|
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
|
|
;;
|
|
esac
|
|
- fi
|
|
;;
|
|
esac
|
|
archive_cmds_need_lc_GCJ=no
|