<pre style='margin:0'>
Christopher Nielsen (mascguy) pushed a commit to branch master
in repository macports-legacy-support.

</pre>
<p><a href="https://github.com/macports/macports-legacy-support/commit/aace691dffd97e6b80b8004788807091619a99b2">https://github.com/macports/macports-legacy-support/commit/aace691dffd97e6b80b8004788807091619a99b2</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit aace691dffd97e6b80b8004788807091619a99b2
</span>Author: Fred Wright <fw@fwright.net>
AuthorDate: Sun Nov 24 13:58:30 2024 -0800

<span style='display:block; white-space:pre;color:#404040;'>    Remove obsolete FORCE_ARCH & update BUILDING.txt.
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    The FORCE_ARCH removal was overlooked in cf1a237.
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    TESTED:
</span><span style='display:block; white-space:pre;color:#404040;'>    Builds still work.
</span>---
 BUILDING.txt | 69 ++++++++++++++++++++++++++++++++++++++----------------------
 Makefile     |  1 -
 2 files changed, 44 insertions(+), 26 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/BUILDING.txt b/BUILDING.txt
</span><span style='display:block; white-space:pre;color:#808080;'>index 237e764..fefb236 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/BUILDING.txt
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/BUILDING.txt
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -2,37 +2,56 @@
</span> 
 Usual Makefile project. This project does not require a configure phase.
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-### Special optional variables
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+The minimum required compiler is GCC 4.2.  On 10.6+ with Xcode 3.2+, the
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+default Xcode compiler is adequate, and a simple 'make' is sufficient to
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build all three versions of the library for the default architecture.
</span> 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# `PLATFORM`
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+On 10.5 with Xcode 3.1, GCC 4.2 is provided, but the default is usually
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+GCC 4.0, so overriding the default may be needed.  On 10.4 with Xcode
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+2.5, only GCC 4.0 is provided, so it's necessary to use the MacPorts
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+apple-gcc42 compiler (or better).
</span> 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-Darwin version to target against. Detected automatically, but can also 
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-be overridden manually to test builds for other OS versions.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-(This is not the macOS version.)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Cross-builds and/or universal builds may be specified in the usual way,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+either via the usual CFLAGS/CXXFLAGS/LDFLAGS, or via ARCHFLAGS.
</span> 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# `FORCE_ARCH`
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Note that the 'ar' tool may generate spurious warnings when creating a
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+universal static library, but it still produces the correct result.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+## Optional variables
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# `CFLAGS`
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# `CXXFLAGS`
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# `LDFLAGS`
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Applied as usual to C compiles, C++ compiles, and linking, respectively. Note
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+that CFLAGS and CXXFLAGS are applied in addition to the defaults included in
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+the Makefile.  To override the defaults, see below.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# `XCFLAGS`
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# `XCXXFLAGS`
</span> 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-Architecture to build for. Accepts a single value, not a list.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Overridable default values for CFLAGS and CXXFLAGS, respectively.  Merged with
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+any supplied CFLAGS and/or CXXFLAGS.  Note that the only C++ builds are a few
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+tests not included in the standard test suite, so [X]CXXFLAGS usually has no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+effect.
</span> 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-If your `lipo` binary is new enough and supports the `-archs` flag, you will
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-not need to use this variable. Instead, directly build the software
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-universally in one pass using the usual `-arch` compiler flags. The
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-autodetection, split and merge features will then handle the different
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-architectures automatically.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# `ARCHFLAGS`
</span> 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-Older versions of `lipo` do not support the `-archs` flag, so automatic
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-architecture detection via binary/object file inspection is not be possible
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-on older platforms.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Merged into CFLAGS/CXXFLAGS/LDFLAGS, normally to specify arch-related options.
</span> 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-In order to avoid an additional dependency on the `cctools` port 
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-to provide a newer `lipo` version, this variable was introduced. 
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-It disables the automatic architecture detection feature and instead 
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-hardcodes the contained value as the target architecture.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# `DEBUG`
</span> 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-Within `MacPorts`, we use it in multi-architecture builds with one
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-pass per architecture. Finally, the `MacPorts ``muniversal` PortGroup
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-will merge the resulting binaries into one fat/universal binary automatically.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Merged into CFLAGS/CXXFLAGS/LDFLAGS, normally to specify a debug option
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+such as `-g3`.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# `OPT`
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+The optimization setting (defaulting to `-Os`), which is merged into the
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compile flags but not the linker flags.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+### Special optional variables
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# `PLATFORM`
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# `FORCE_ARCH`
</span> 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-Some symbols must be built multiple times. Each variant will use a different
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-data layout and have a special postfix appended to it. The data layouts
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-supported and needed depend upon the architecture and (target) OS version.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Obsolete.  No longer used.
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/Makefile b/Makefile
</span><span style='display:block; white-space:pre;color:#808080;'>index 9c17230..ee2a1eb 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/Makefile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/Makefile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -60,7 +60,6 @@ POSTINSTALL     ?= /usr/bin/install_name_tool
</span> # is wanted, then override XC[XX]FLAGS.
 #
 # Note: Overriding CC or CXX with ?= doesn't work, since they're "defined".
<span style='display:block; white-space:pre;background:#ffe0e0;'>-FORCE_ARCH      ?=
</span> ARCHFLAGS       ?=
 DEBUG           ?=
 OPT             ?= -Os
</pre><pre style='margin:0'>

</pre>